Skip to content

Commit

Permalink
chore: add story for shorthand api
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanluongoe committed Mar 26, 2024
1 parent 5e1218e commit f117c00
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/stories/Toast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ export const Success: StoryFn<typeof Toaster> = () => {
);
};

export const SimpleArg: StoryFn<typeof Toaster> = () => {
return (
<div>
<Toaster />
<button
type="button"
onClick={() => {
toast('Simple description');
}}
>
Show Toast
</button>
</div>
);
};

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

Expand Down

0 comments on commit f117c00

Please sign in to comment.