Component packs › Transit › Route Stepper
A checkout drawn as a route: the train brakes at each stop, the track fills behind it, stops get ticks, and going back makes it reverse, headlight and all.
Route Stepper is a stepper from Transit, a component pack with 8 components: Navigation components drawn as one metro line. Price: $2 for the whole pack.
Built with: reverse, aria-current step, sliding panels.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
steps | RouteStep[] | ||
value | number | ||
finishLabel | string | Label on the last step's button. | |
onChange | (index: number) => void | ||
onFinish | () => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: goes forward, back and forward again until touched. |
readonly value: numbergo(i: number): voiddestroy(): voidimport RouteStepper from './RouteStepper';
<RouteStepper />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Navigation and menus.