IStepperProvide

interface
Provide / Inject

Injection contract provided by <OrigamStepper> to its OrigamStepperItem children. Exposes the active step ref, orientation, clickability flag, and inherited color for child coordination.

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.

modelValue
requis
Ref<number>
Reactive ref holding the zero-based index of the currently active step.
orientation
requis
ComputedRef<TStepperOrientation>
Computed orientation of the stepper (horizontal or vertical). Used by children for layout.
clickable
requis
ComputedRef<boolean>
Computed flag indicating whether step headers are navigable by click.
color
requis
ComputedRef<string | undefined>
Inherited color token propagated to step indicators.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Injecting the stepper context in a child

typescript