Skip to content

Stepper ​

Steps header + panels + next / back

A task split into ordered steps with one panel at a time — checkout, onboarding, a setup wizard. Use it when each step depends on the one before; a single long form is often simpler.

Basic
  1. Account
  2. Profile
  3. Review
  • Next / Back / Finish buttons by default (labels to rename, #actions to replace). On each step change focus moves to the panel, so the new step is read.
  • linear (default) lets the header go back to completed steps only; :linear="false" lets people jump to any step.

Usage ​

ts
import { BlessStepper } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
steps*BlessStep[]—
orientation"horizontal" | "vertical""horizontal"
linearbooleantruelinear: the header only goes back to completed steps; off: any step can be jumped to
labelsPartial<{ next: string; prev: string; finish: string; }>—
modelValuenumber0

Events

NamePayloadDescription
update:modelValue[value: number]
finish[]

Slots

NameScopeDescription
default{ step: BlessStep; index: number; next: () => number | void; prev: () => number | false; last: boolean; }
actions{ next: () => number | void; prev: () => number | false; index: number; last: boolean; }

Released under the MIT License. Character names and artwork belong to their owners.