v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS
Stepper
Show progress through a sequence of steps.
Interactive preview
Usage
import { Stepper } from "@devvy-ui/react";
<Stepper label="Setup" current={1} steps={[{id:'profile',label:'Profile'},{id:'team',label:'Team'}]} />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | {id,label,description?,href?,disabled?}[] | required | Ordered steps. |
| current | number | required | Current zero-based index. |
| onStepChange | (index: number) => void | — | Optional local navigation. |
Accessibility & behavior
Platform Behavior & Guidelines
An ordered navigation list with aria-current=step. Use hrefs for routes or onStepChange for local workflows. It does not imply completion validation.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add stepperMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Stepper.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.