Navigation
Stepper
A numbered progress indicator for multi-step flows like checkout, onboarding, and form wizards. Completed steps show a check, the active step is highlighted, and upcoming steps are muted.
Horizontal
- AccountYour details
- 2ShippingWhere to
- 3PaymentHow to pay
- 4ReviewConfirm
Import
import { Stepper } from "@mikenotthepope/substrateui"Vertical
- AccountYour details
- ShippingWhere to
- 3PaymentHow to pay
- 4ReviewConfirm
Accessibility
The stepper is an ordered list; the active step carries aria-current="step", and each step exposes a data-state of complete, active, or upcoming for styling hooks. State is conveyed by the check glyph and text weight, not color alone.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
steps | { label: ReactNode; description?: ReactNode }[] | — | The ordered steps to render. |
activeStep | number | — | Zero-based index of the current step. Earlier steps render as completed. |
orientation | "horizontal" | "vertical" | "horizontal" | Layout direction. |