Skip to content

ToastOptions

Defined in: src/core/toast.ts:12

Options for raising a toast via toast.show.

optional duration?: number

Defined in: src/core/toast.ts:20

Milliseconds before auto-dismiss; 0 keeps it until dismissed. Defaults per level.


optional level?: ToastLevel

Defined in: src/core/toast.ts:14

Severity, driving the icon and color. Defaults to generic.


message: string

Defined in: src/core/toast.ts:18

The body text.


optional title?: string

Defined in: src/core/toast.ts:16

Optional bold heading shown above the message.