Stepper
A checkout in three acts: done steps link back, the current step is marked, the future waits its turn.
Example
<Stepper
current={2}
steps={[
{ label: "Cart", href: "/components" },
...
}}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
steps | Array | - | Label + optional href + description. |
current | number | - | 0-based index of the current step. |
Accessibility
- Ordered list with
aria-current="step"on the active one. - Done steps are links, the current step is text, upcoming is plain text.
- Status also exposed via
data-statusfor styling hooks.