Skip to content

Toast

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

A live toast as held by the ToastManager.

readonly createdAt: number

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

Creation timestamp (ms epoch).


readonly duration: number

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

Resolved duration (ms); 0 means sticky.


readonly id: number

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

Unique id, used to toast.dismiss it.


readonly level: ToastLevel

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

Severity.


readonly message: string

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

Body text.


readonly optional title?: string

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

Optional heading.