Stepper
Shows progress through a multi-step flow. Connectors fill with a gradient as steps complete; completed steps can be clickable.
Import
import { Stepper } from "@igorao79/uivix";Examples
Horizontal
Click a completed step to go back
- AccountEmail & password
- ProfileName and avatar
- PlanPick a plan
- DoneStart building
Vertical
- AccountEmail & password
- ProfileName and avatar
- PlanPick a plan
- DoneStart building
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | StepperStep[] | - | { title, description? } for each step |
| current | number | - | Index of the current step; earlier steps are complete |
| orientation | "horizontal" | "vertical" | "horizontal" | Layout direction |
| onStepClick | (index: number) => void | - | Makes completed steps clickable |
| className | string | - | Additional CSS classes |