ToastOptions
Defined in: components/toast.ts:6
Options for toast.
Properties
Section titled “Properties”message
Section titled “message”message:
Slot
Defined in: components/toast.ts:8
Primary message. A string is rendered as rich text.
title?
Section titled “title?”
optionaltitle?:Slot
Defined in: components/toast.ts:10
Optional bold title above the message.
optionaltype?:"success"|"danger"|"warning"|"neutral"
Defined in: components/toast.ts:12
Colour role. Defaults to "neutral".
duration?
Section titled “duration?”
optionalduration?:number
Defined in: components/toast.ts:17
Auto-dismiss delay in milliseconds. Defaults to 6000.
Pass 0 to make the toast persistent until dismissed manually.
dismissible?
Section titled “dismissible?”
optionaldismissible?:boolean
Defined in: components/toast.ts:19
Show a close button. Defaults to true.
attrs?
Section titled “attrs?”
optionalattrs?:string
Defined in: components/toast.ts:21
Aberdeen attr/style string applied to the toast element.