Stepper
Navigationshadcn/uiProgress through a multi-step flow (sign-up, checkout, identity check): numbered circles joined by a line; done steps show a check, the current one has a dark ring. Display only.
When to use
- Use it for flows of 3 to 5 steps where knowing what's left helps.
- Keep Back and Continue Buttons under the form; the Stepper doesn't navigate.
- Don't use it for 2 steps; a heading like 'Step 1 of 2' is enough.
- Don't use it on mobile with more than 3 steps horizontally; use Progress plus 'Step 2 of 5'.
Accessibility
- Role
- list
- Keyboard
- Not focusable.
- Notes
- The current step has aria-current='step'; done steps read '(done)'.
- Note
- The list is labelled 'Step n of total'.
Props
steps{ label: string; description?: string }[]In order; labels of one or two words.
currentnumberIndex of the current step from 0; steps.length when finished.
orientation= 'horizontal''horizontal' | 'vertical'Direction.
Prompt for your agent
Use the UnbuiltUI Stepper. Call unbuilt_get_component("Stepper") first and follow its spec: variants, states, usage rules and accessibility.
unbuilt_get_component returns
2 variants1 state3 props4 usage rules3 a11y notes6 tokens1 example
Add it with shadcn
$
npx shadcn add https://unbuiltui.com/r/stepper.jsonTokens · 6
bg.inversefg.inverseborder.subtlefg.defaultfg.mutedfg.subtle