diff --git a/plugins/app/src/components/Toast/Toast.stories.tsx b/plugins/app/src/components/Toast/Toast.stories.tsx index 482bd0e5d8..84d75aed0b 100644 --- a/plugins/app/src/components/Toast/Toast.stories.tsx +++ b/plugins/app/src/components/Toast/Toast.stories.tsx @@ -158,6 +158,35 @@ export const Default = meta.story({ ), }); +const previewQueue = new ToastQueue({ + maxVisibleToasts: 4, +}); +previewQueue.add({ + title: 'Changes saved successfully', + description: 'Your changes have been saved.', + status: 'success', +}); + +export const PreviewToast = meta.story({ + render: () => , +}); + +const timerQueue = new ToastQueue({ + maxVisibleToasts: 4, +}); +timerQueue.add( + { + title: 'Auto-dismissing in 5 seconds', + description: 'This toast will disappear automatically.', + status: 'info', + }, + { timeout: 5000 }, +); + +export const PreviewToastWithTimer = meta.story({ + render: () => , +}); + export const StatusVariants = meta.story({ render: () => ( <>