ISnackbarProps
Full props contract for <OrigamSnackbar> — a positioned notification surface with auto-dismiss timer, optional progress bar, multi-line and vertical layout modes, and the full design surface (color, border, elevation, spacing).
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.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
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.
- multiLineboolean
- Allows the snackbar text to wrap across multiple lines.
- textstring
- Body text of the snackbar. Can be used instead of the default slot.
- timerboolean | string
- Shows a progress bar indicating the remaining auto-dismiss time. Pass a color string to tint it.
- timeoutnumber | string
- Auto-dismiss delay in ms. Defaults to 5000. Pass -1 to disable auto-dismiss.
- verticalboolean
- Stacks the text and action vertically instead of inline.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Auto-dismiss snackbar with timer