◇
Stepper
7 partsAnatomy
Import the parts and compose them. Each part forwards attributes to its underlying element.
vue
import {
StepperRoot,
StepperItem,
StepperTrigger,
StepperIndicator,
StepperTitle,
StepperDescription,
StepperSeparator,
} from '@robonen/primitives/stepper';
<StepperRoot>
<StepperItem />
<StepperTrigger />
<StepperIndicator />
<StepperTitle />
<StepperDescription />
<StepperSeparator />
</StepperRoot>API Reference
StepperRoot
Root| Prop | Type | Description |
|---|---|---|
modelValue? | number | Controlled active step (1-based). Use `v-model`. |
defaultValue? | number | Uncontrolled initial step. |
orientation? | StepperOrientation | Orientation. |
dir? | StepperDirection | Writing direction. Falls back to `ConfigProvider` when omitted. |
linear? | boolean | Require steps to be completed in order. |
disabled? | boolean | Disable the entire stepper. |
StepperItem
Item| Prop | Type | Description |
|---|---|---|
step | number | 1-based index associating this item with a step. |
disabled? | boolean | Disable this specific step. |
completed? | boolean | Mark the step as completed regardless of current `modelValue`. |
StepperTrigger
TriggerNo props or events — renders its element and forwards attributes.
StepperIndicator
IndicatorNo props or events — renders its element and forwards attributes.
StepperTitle
TitleNo props or events — renders its element and forwards attributes.
StepperDescription
DescriptionNo props or events — renders its element and forwards attributes.
StepperSeparator
SeparatorNo props or events — renders its element and forwards attributes.