Component packs › Transit › Route Stepper

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.

Route Stepper props

PropTypeDefaultDescription
stepsRouteStep[]
valuenumber
finishLabelstringLabel on the last step's button.
onChange(index: number) => void
onFinish() => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: goes forward, back and forward again until touched.

Methods on the ref

Use it in React

import RouteStepper from './RouteStepper';

<RouteStepper />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Transit

Good for: Navigation and menus.