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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

label
requis
string
Text label displayed on the action button.
handler
requis
() => 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.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Notify with an undo action

typescript