From 4dab043bd5dabae67641831ddbcb0b5805e48bb8 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Mon, 30 Mar 2026 12:05:12 +0100 Subject: [PATCH] Update Toast.stories.tsx Signed-off-by: Charles de Dreuille --- .../src/components/Toast/Toast.stories.tsx | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) 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: () => ( <>