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.

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.

title
string
Bold first line. Useful for short labels (e.g. "Saved").
message
string
Body text under the title (or sole line when title is absent).
intent
TIntent
Semantic intent driving icon defaults, role=status|alert, and surface coloring. Defaults to "info".
duration
number
Auto-dismiss timeout in ms. Overrides the stack-level defaultDuration. Pass 0 to make the item sticky.
icon
TIcon
Prepend icon override. Defaults to the per-intent icon (mdiCheckCircle for success, mdiAlertCircle for danger, …).
actions
ReadonlyArray<ISnackbarGroupItemAction>
Optional action buttons rendered in the snackbar footer.
dismissible
boolean
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

typescript