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.
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.
- labelrequisstring
- Text label displayed on the action button.
- handlerrequis() => void
- Callback invoked when the action button is clicked.
- intentTIntent
- Semantic intent driving the button color (e.g. "primary", "danger").
- keepOpenboolean
- 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