diff --git a/packages/core/src/components/toast/toast.stories.tsx b/packages/core/src/components/toast/toast.stories.tsx index e96bc950c..04d0bcbd6 100644 --- a/packages/core/src/components/toast/toast.stories.tsx +++ b/packages/core/src/components/toast/toast.stories.tsx @@ -55,6 +55,13 @@ export default { type: 'text', }, }, + hidden: { + name: 'Hidden', + description: 'Hides the Toast.', + control: { + type: 'boolean', + }, + }, }, args: { variant: 'Information', @@ -63,15 +70,17 @@ export default { actions: ` Tegel `, + hidden: false, }, }; -const Template = ({ variant, header, subheader, actions }) => +const Template = ({ variant, header, subheader, actions, hidden }) => formatHtmlPreview( ` ${actions || ''} diff --git a/packages/core/src/components/toast/toast.tsx b/packages/core/src/components/toast/toast.tsx index a9761065b..d2afe0b33 100644 --- a/packages/core/src/components/toast/toast.tsx +++ b/packages/core/src/components/toast/toast.tsx @@ -97,7 +97,10 @@ export class TdsToast {