Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow / index / FlashFrame

Interface: FlashFrame

Defined in: flow/src/types.ts:219

Flash notification frame.

Extends

Properties

message

message: string

Defined in: flow/src/types.ts:195

Inherited from

FlashMessage.message


level

level: "error" | "success" | "warning" | "info"

Defined in: flow/src/types.ts:196

Inherited from

FlashMessage.level


title?

optional title?: string

Defined in: flow/src/types.ts:198

Bold header rendered above the message.

Inherited from

FlashMessage.title


position?

optional position?: FlashPosition

Defined in: flow/src/types.ts:200

Override the <Flash> container position for this toast.

Inherited from

FlashMessage.position


duration?

optional duration?: number

Defined in: flow/src/types.ts:202

Auto-dismiss after N ms. 0 (or negative) keeps it until dismissed.

Inherited from

FlashMessage.duration


dismissible?

optional dismissible?: boolean

Defined in: flow/src/types.ts:204

Render a close (×) button. Forced on when the toast doesn't auto-dismiss.

Inherited from

FlashMessage.dismissible


icon?

optional icon?: string | false

Defined in: flow/src/types.ts:206

Custom icon (emoji/text), or false to hide the status icon.

Inherited from

FlashMessage.icon


progressBar?

optional progressBar?: boolean

Defined in: flow/src/types.ts:208

Show a countdown progress bar (only meaningful while auto-dismissing).

Inherited from

FlashMessage.progressBar


actions?

optional actions?: FlashAction[]

Defined in: flow/src/types.ts:210

Action buttons (e.g. "Undo") that each invoke a @expose method on click.

Inherited from

FlashMessage.actions


onClose?

optional onClose?: FlashCallback

Defined in: flow/src/types.ts:212

A @expose method invoked when the toast is dismissed (any path).

Inherited from

FlashMessage.onClose


type

type: "flash"

Defined in: flow/src/types.ts:220