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

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

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

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Injecting the stepper context in a child

typescript