Skip to content

Commit

Permalink
Add containerClassName prop
Browse files Browse the repository at this point in the history
- Closes #43
  • Loading branch information
timolins committed Mar 21, 2021
1 parent 345aac0 commit 2be3b23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ interface ToasterProps {
position?: ToastPosition;
reverseOrder?: boolean;
containerStyle?: CSS.Properties;
containerClassName?: string;

toastOptions?: DefaultToastOptions;
renderToast?: (toast: Toast) => JSX.Element;
Expand All @@ -53,6 +54,7 @@ export const Toaster: React.FC<ToasterProps> = ({
position = 'top-center',
containerStyle,
toastOptions,
containerClassName,
renderToast,
}) => {
const { toasts, handlers } = useToaster(toastOptions);
Expand All @@ -69,6 +71,7 @@ export const Toaster: React.FC<ToasterProps> = ({
position: 'fixed',
...containerStyle,
}}
className={containerClassName}
onMouseEnter={handlers.startPause}
onMouseLeave={handlers.endPause}
>
Expand Down

0 comments on commit 2be3b23

Please sign in to comment.