Skip to content

Commit

Permalink
chore: update stories
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanluongoe committed Jan 10, 2024
1 parent 233c580 commit 0611393
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/stories/Toast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,30 @@ export const Loading: StoryFn<typeof Toaster> = () => {
);
};

export const Warning: StoryFn<typeof Toaster> = () => {
return (
<div>
<Toaster
toastOptions={{
className: 'abc',
duration: 500 * 1000,
}}
/>
<button
type="button"
onClick={() => {
toast.warning({
title: 'warning',
description: 'description',
});
}}
>
Show Toast
</button>
</div>
);
};

export const CustomIcon: StoryFn<typeof Toaster> = () => {
const [count, setCount] = useState(0);

Expand Down

0 comments on commit 0611393

Please sign in to comment.