Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow / index / FlashAction

Interface: FlashAction

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

An interactive button inside a toast. method names a @expose action on the component that emitted the flash; clicking the button invokes it over the WS bridge (with optional args), then dismisses the toast.

Extends

Properties

color?

optional color?: string

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

Accent: a level name (success/error/warning/info), neutral, or any CSS color.

Inherited from

FlashActionStyle.color


variant?

optional variant?: FlashActionVariant

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

Fill style — soft (default), solid, or ghost.

Inherited from

FlashActionStyle.variant


uppercase?

optional uppercase?: boolean

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

Render the label uppercase (adds letter-spacing).

Inherited from

FlashActionStyle.uppercase


label

label: string

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


method

method: string

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


args?

optional args?: unknown[]

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