IWindowProvide
interface
State & Interaction
Internal provide contract injected by <OrigamWindow> into its WindowItem children — exposes the active transition name, slide count, height, direction and root ref for coordinated animations.
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.
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.
- transitionrequisComputedRef<undefined | string>
- Computed transition name currently in use, derived from the active slide direction and parent props.
- transitionCountrequisRef<number>
- Running count of slide transitions; used to key animations and prevent stale transitions.
- transitionHeightrequisRef<undefined | string>
- Height of the active slide (CSS string or undefined) used to animate the container height during transitions.
- isReversedrequisRef<boolean>
- Whether the current navigation direction is reversed — drives the transition enter/leave direction on child items.
- rootRefrequisRef<HTMLElement | undefined>
- Template ref to the Window root element; used by items to measure container dimensions.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Consuming the provided context in a custom WindowItem