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.

typescript

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.

transition
requis
ComputedRef<undefined | string>
Computed transition name currently in use, derived from the active slide direction and parent props.
transitionCount
requis
Ref<number>
Running count of slide transitions; used to key animations and prevent stale transitions.
transitionHeight
requis
Ref<undefined | string>
Height of the active slide (CSS string or undefined) used to animate the container height during transitions.
isReversed
requis
Ref<boolean>
Whether the current navigation direction is reversed — drives the transition enter/leave direction on child items.
rootRef
requis
Ref<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

typescript