Stepper
Progress Stepper
A horizontal stepper whose connecting line fills up to the current step, with checks that draw in on completed steps.
npx motionsnack add progress-stepperCustomize
<ProgressStepper />Props
8 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { value?: string; label: string; description?: string; status?: 'error' }[] | 4 demo steps | Steps in order. An empty array renders nothing. |
| value | string | - | Controlled current step (its value). Steps before it are done; a value that matches no step means all are done. |
| defaultValue | string | second step | Current step on first render when uncontrolled. |
| onChange | (value: string) => void | - | Called with the new step's value; '' once every step is done. |
| labels | { back?, next?, finish?, reset?, stepOf? } | Back / Next / Launch project / Start over | UI strings. An empty back or next hides that button; an empty reset disables Next once done. |
| className | string | '' | Extra classes on the wrapper. |
| clickable | boolean | true | Completed steps are buttons that go back to them. |
| showControls | boolean | true | Back / Next buttons under the steps. |
About Progress Stepper
Progress Stepper lays out numbered steps with a title and a short description, joined by a thin line. Moving forward fills the line to the next step with an eased sweep, and the step left behind swaps its number for a check mark that draws itself in. The current step is marked by an accent ring, and going back empties the line and restores the numbers the same way. Every step is a button, so clicking one jumps straight to it, and the built-in Back and Next buttons walk through the flow, finish it and start over. Below a small container width the steps stack into a vertical list with the line running down the side.
What's included
- Connecting line that fills to the current step
- Check marks that draw in on completed steps
- Clickable steps plus Back / Next buttons
- Controlled and uncontrolled step with onStepChange
- Stacks vertically in narrow containers
- Light and dark look, respects reduced motion
- Type
- Animated React stepper component
- Library
- Components · Stepper
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add progress-stepper