ISnackbarGroupItemAction

interface
Data Shapes

Action button descriptor attached to a snackbar stack item. Rendered as a button inside the toast — clicking it invokes handler and by default dismisses the item.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

label
required
string
Text label displayed on the action button.
handler
required
() => void
Callback invoked when the action button is clicked.
intent
TIntent
Semantic intent driving the button color (e.g. "primary", "danger").
keepOpen
boolean
When true, the snackbar stays visible after the action is clicked (e.g. for multi-step confirmations). Defaults to false.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Notify with an undo action

typescript