Stepper
FREEHorizontal or vertical multi-step progress with filling connectors, errors and optional steps.
Installation
Terminal
npx @bloxa/cli add stepper
# or: npx shadcn@latest add @bloxa/stepperPackages installed automatically: motion
Examples
Checkout steps
Click a completed step to go back.
- Cart3 items
- 2AddressWhere to ship
- 3Gift noteOptional
- 4Payment
Vertical with an error
- Create accountDone in 30 seconds
- Verify emailCode sent to [email protected]
- !Connect domainDNS check failed
- 4Invite team
API reference
Every component also accepts the props of the element it renders.
Stepper
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | { title, description?, icon?, error?, optional? }[] | — | Steps. |
| current | number | — | Current step (from 0). |
| orientation | "horizontal" | "vertical" | "horizontal" | Direction. |
| onStepClick | (index) => void | — | Jump back to completed steps. |
| size | "sm" | "md" | "md" | Size. |