Toast
Defined in: src/core/toast.ts:24
A live toast as held by the ToastManager.
Properties
Section titled “Properties”createdAt
Section titled “createdAt”
readonlycreatedAt:number
Defined in: src/core/toast.ts:36
Creation timestamp (ms epoch).
duration
Section titled “duration”
readonlyduration:number
Defined in: src/core/toast.ts:34
Resolved duration (ms); 0 means sticky.
readonlyid:number
Defined in: src/core/toast.ts:26
Unique id, used to toast.dismiss it.
readonlylevel:ToastLevel
Defined in: src/core/toast.ts:28
Severity.
message
Section titled “message”
readonlymessage:string
Defined in: src/core/toast.ts:32
Body text.
title?
Section titled “title?”
readonlyoptionaltitle?:string
Defined in: src/core/toast.ts:30
Optional heading.