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
- Account
- Profile
- Review
- Next / Back / Finish buttons by default (
labelsto rename,#actionsto 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
| Name | Type | Default | Description |
|---|---|---|---|
steps* | BlessStep[] | — | |
orientation | "horizontal" | "vertical" | "horizontal" | |
linear | boolean | true | linear: the header only goes back to completed steps; off: any step can be jumped to |
labels | Partial<{ next: string; prev: string; finish: string; }> | — | |
modelValue | number | 0 |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: number] | |
finish | [] |
Slots
| Name | Scope | Description |
|---|---|---|
default | { step: BlessStep; index: number; next: () => number | void; prev: () => number | false; last: boolean; } | |
actions | { next: () => number | void; prev: () => number | false; index: number; last: boolean; } |