ISnackbarGroupItemOptions
interface
Data Shapes
Options accepted by useSnackbarGroup().notify(opts) — every field is optional except that the resulting item must surface either a title, a message, or both to the user.
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.
- titlestring
- Bold first line. Useful for short labels (e.g. "Saved").
- messagestring
- Body text under the title (or sole line when title is absent).
- intentTIntent
- Semantic intent driving icon defaults, role=status|alert, and surface coloring. Defaults to "info".
- durationnumber
- Auto-dismiss timeout in ms. Overrides the stack-level defaultDuration. Pass 0 to make the item sticky.
- iconTIcon
- Prepend icon override. Defaults to the per-intent icon (mdiCheckCircle for success, mdiAlertCircle for danger, …).
- actionsReadonlyArray<ISnackbarGroupItemAction>
- Optional action buttons rendered in the snackbar footer.
- dismissibleboolean
- Whether to show the close (X) button. Default true.
- onDismiss() => void
- Callback fired once the item leaves the stack.
É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 full options