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.
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.
- idstring
- Identifier of the stack this container renders. Pair with useSnackbarGroup({ id }) to push items into the same stack. Defaults to "default".
- locationTSnackbarGroupLocation
- Anchor location on the viewport — drives both absolute positioning and the direction default. Defaults to "bottom-right".
- maxnumber
- Maximum number of items rendered concurrently. When exceeded, the oldest item is evicted FIFO. Defaults to 5.
- defaultDurationnumber
- Default auto-dismiss timeout (ms) for items without their own duration. Pass 0 to make all items sticky. Defaults to 5000.
- spacingstring | number
- Gap between stacked items (CSS dimension). Defaults to "12px".
- directionTSnackbarGroupDirection
- 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