ISnackbarGroupProps

interface
Component Props

Props contract for <OrigamSnackbarGroup> — a multi-toast container that orchestrates a queue of OrigamSnackbar instances driven through the useSnackbarGroup({ id }) composable.

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.

id
string
Identifier of the stack this container renders. Pair with useSnackbarGroup({ id }) to push items into the same stack. Defaults to "default".
location
TSnackbarGroupLocation
Anchor location on the viewport — drives both absolute positioning and the direction default. Defaults to "bottom-right".
max
number
Maximum number of items rendered concurrently. When exceeded, the oldest item is evicted FIFO. Defaults to 5.
defaultDuration
number
Default auto-dismiss timeout (ms) for items without their own duration. Pass 0 to make all items sticky. Defaults to 5000.
spacing
string | number
Gap between stacked items (CSS dimension). Defaults to "12px".
direction
TSnackbarGroupDirection
Stacking order. Defaults to "top-down" for top-* locations and "bottom-up" for bottom-* locations.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Global toast container at top-right

vue