diff --git a/src/stories/toastr/Toastr.tsx b/src/stories/toastr/Toastr.tsx
index 48c1e81..9ebf580 100644
--- a/src/stories/toastr/Toastr.tsx
+++ b/src/stories/toastr/Toastr.tsx
@@ -6,10 +6,18 @@ import { ReactComponent as Danger } from "./assets/danger.svg";
import { ReactComponent as Info } from "./assets/info.svg";
import { ReactComponent as Success } from "./assets/success.svg";
import { ReactComponent as Warining } from "./assets/warning.svg";
+import { Button } from "../button/Button";
export interface ToastrProps extends BaseProps {
type: keyof DefaultTheme["palette"];
onClose?: () => void;
+ a11y?: {
+ closeLabel?: string;
+ dangerLabel?: string;
+ infoLabel?: string;
+ successLabel?: string;
+ warningLabel?: string;
+ };
}
interface ToastrStyleProps {
@@ -17,29 +25,95 @@ interface ToastrStyleProps {
type: ToastrProps["type"];
}
-const BasicToastr = ({ type, className, onClose, children }: ToastrProps) => {
+const BasicToastr = ({
+ type,
+ className,
+ onClose,
+ children,
+ a11y,
+}: ToastrProps) => {
const getIcon = () => {
switch (type) {
case "danger":
- return