Skip to main content

Stepper

A process/wizard step indicator with complete/current/upcoming states. @startingPoint section="Navigation" subtitle="Process / wizard step nav with progress states" viewport="760x120"

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A process/wizard step indicator with complete/current/upcoming states.

Accessibility​

Arrow keys move between items; the current item is marked aria-current. Tabs follow the WAI-ARIA tabs pattern (roving tabindex, Home/End).

Install and import​

npx shadcn@latest add @prism/stepper
import { Stepper } from '@/components/prism/Stepper';

In a no-build prototype, read it from the bundle instead: const { Stepper } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
stepsStep[]Yes
currentStepnumber—0-indexed current step; earlier steps render complete.
orientation"horizontal" | "vertical" | "responsive"—"horizontal" (default; steps shrink and wrap their text when tight), "vertical", or "responsive": follows its column — drops descriptions when narrow, stacks vertically when narrower still (adds a .prism-stepper-frame wrapper).
markerPosition"start" | "end"—Marker placement relative to the label. "end" = icon-after-text (horizontal) or right-aligned text-on-left rail (vertical). Default "start".
onStepClick(index: number, step: Step) => void—Makes completed steps clickable: (index, step) => void.
classNamestring—