Stepper
Multi-step flow indicator: ordered list, aria-current step, text state, horizontal or vertical, numbered or dots.
npx @slipstream-ui/cli@latest add stepperOnboarding wizard (interactive)
Labels below the markers
Step 3 of 4. Every title is centred on its marker because none has a description.
Vertical timeline
Compact dots
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | { label: string; description?: string }[] | required | Ordered step definitions. |
| current | number | required | Zero-based index of the active step. |
| orientation | 'horizontal' | 'vertical' | 'horizontal' | Layout direction. |
| variant | 'numbered' | 'dots' | 'numbered' | Numbered markers with a check when complete, or compact dots. |
| size | 'sm' | 'md' | 'md' | Marker and label scale. |
| labelPlacement | 'inline' | 'below' | 'inline' | Horizontal only: label beside or beneath the marker. |
| alignTitles | 'start' | 'center' | 'center' | Center a title against its marker when the step has no description. |
| onStepClick | (index: number) => void | — | Makes steps clickable (revisit flows). |
Accessibility
- Ordered list semantics; the active step carries aria-current="step".
- Complete/current/upcoming are stated in screen-reader text, not only color.
- Titles without a description are centred against the marker; titles with one stay top aligned.
- Clickable steps are real buttons with a visible focus ring.
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.