Skip to content

ToastOptions

Defined in: components/toast.ts:6

Options for toast.

message: Slot

Defined in: components/toast.ts:8

Primary message. A string is rendered as rich text.


optional title?: Slot

Defined in: components/toast.ts:10

Optional bold title above the message.


optional type?: "success" | "danger" | "warning" | "neutral"

Defined in: components/toast.ts:12

Colour role. Defaults to "neutral".


optional duration?: 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.


optional dismissible?: boolean

Defined in: components/toast.ts:19

Show a close button. Defaults to true.


optional attrs?: string

Defined in: components/toast.ts:21

Aberdeen attr/style string applied to the toast element.