Step Track
Progress through a multi-step flow. The connector fills and drains, the check draws itself, and the counter rolls.
pixikit.com/docs/app-ui/navigation/step-track
Customize
Current0
Linear
Variant
Orientation
Show counter
Props
9| Name | Type | Default | Description |
|---|---|---|---|
steps | StepTrackStep[] | DEFAULT_STEPS | The steps of the flow, in order. |
current | number | 0 | The index of the current step; done and upcoming are worked out from it. |
onStepChange | (index: number) => void | None | Called with the index of the step the user clicks. |
linear | boolean | true | Only done steps and the current one can be clicked; off lets the user jump anywhere. |
variant | "circles" | "bars" | "dots" | "circles" | `circles` numbers the steps, `bars` draws a segment per step, `dots` is the smallest. |
orientation | "horizontal" | "vertical" | "auto" | "horizontal" | `auto` lays the steps in a row when the container is wide enough, else in a column. |
showCounter | boolean | false | Shows a "Step 2 of 5" line whose number rolls. |
ariaLabel | string | "Progress" | Name for the navigation landmark, read by screen readers. |
className | string | None |