ISnackbarProps

interface
Component Props

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.

typescript

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.

multiLine
boolean
Allows the snackbar text to wrap across multiple lines.
text
string
Body text of the snackbar. Can be used instead of the default slot.
timer
boolean | string
Shows a progress bar indicating the remaining auto-dismiss time. Pass a color string to tint it.
timeout
number | string
Auto-dismiss delay in ms. Defaults to 5000. Pass -1 to disable auto-dismiss.
vertical
boolean
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

vue