diff --git a/src/index.tsx b/src/index.tsx index 9403a85..c1229ee 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -51,6 +51,7 @@ interface ToastProps { descriptionClassName?: string; loadingIcon?: React.ReactNode; classNames?: ToastClassnames; + closeButtonAriaLabel?: string; } function cn(...classes: (string | undefined)[]) { @@ -81,6 +82,7 @@ const Toast = (props: ToastProps) => { loadingIcon: loadingIconProp, expandByDefault, classNames, + closeButtonAriaLabel = 'Close toast', } = props; const [mounted, setMounted] = React.useState(false); const [removed, setRemoved] = React.useState(false); @@ -325,7 +327,7 @@ const Toast = (props: ToastProps) => { > {closeButton && !toast.jsx ? (