R

Stepper

7 parts

Anatomy

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
PropTypeDescription
modelValue?numberControlled active step (1-based). Use `v-model`.
defaultValue?numberUncontrolled initial step.
orientation?StepperOrientationOrientation.
dir?StepperDirectionWriting direction. Falls back to `ConfigProvider` when omitted.
linear?booleanRequire steps to be completed in order.
disabled?booleanDisable the entire stepper.

StepperItem

Item
PropTypeDescription
stepnumber1-based index associating this item with a step.
disabled?booleanDisable this specific step.
completed?booleanMark the step as completed regardless of current `modelValue`.

StepperTrigger

Trigger

No props or events — renders its element and forwards attributes.

StepperIndicator

Indicator

No props or events — renders its element and forwards attributes.

StepperTitle

Title

No props or events — renders its element and forwards attributes.

StepperDescription

Description

No props or events — renders its element and forwards attributes.

StepperSeparator

Separator

No props or events — renders its element and forwards attributes.