[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / FlashAction

# Interface: FlashAction

Defined in: [flow/src/types.ts:174](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/types.ts#L174)

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

- [`FlashActionStyle`](FlashActionStyle)

## Properties

### color?

> `optional` **color?**: `string`

Defined in: [flow/src/types.ts:161](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/types.ts#L161)

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

#### Inherited from

[`FlashActionStyle`](FlashActionStyle).[`color`](FlashActionStyle#color)

***

### variant?

> `optional` **variant?**: [`FlashActionVariant`](../type-aliases/FlashActionVariant)

Defined in: [flow/src/types.ts:163](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/types.ts#L163)

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

#### Inherited from

[`FlashActionStyle`](FlashActionStyle).[`variant`](FlashActionStyle#variant)

***

### uppercase?

> `optional` **uppercase?**: `boolean`

Defined in: [flow/src/types.ts:165](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/types.ts#L165)

Render the label uppercase (adds letter-spacing).

#### Inherited from

[`FlashActionStyle`](FlashActionStyle).[`uppercase`](FlashActionStyle#uppercase)

***

### label

> **label**: `string`

Defined in: [flow/src/types.ts:175](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/types.ts#L175)

***

### method

> **method**: `string`

Defined in: [flow/src/types.ts:176](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/types.ts#L176)

***

### args?

> `optional` **args?**: `unknown`[]

Defined in: [flow/src/types.ts:177](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/types.ts#L177)
