Route progress
A winding route with the journey drawn on it. The way travelled is a solid line, the way ahead is dashed, and a marker with a heading moves along the curve, easing to each new position.
Order 4821
Arrives about 120 min
- WarehouseLeft 9:05
- Sorting hubScanned 11:40
- Local depotOut for delivery
- DeliveredHanded over
Warehouse, 20 percent of the way
When to use
- Delivery, ride and shipment tracking.
- Multi-leg journeys where where it is now matters as much as the stage.
When not to use
- A real map; this is a diagram of stages, not geography.
- More than six stops; the labels no longer fit a phone.
Installation
pnpm dlx shadcn@latest add @caliper/route-progress
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
RouteProgress
4 props
Also accepts the native props of its root element and a ref.
currentStop
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-hidden and aria-current kept in step with state. Changes that matter are announced through a live region.
Motion
- State changes animate with the library's shared durations and curves, so its timing matches every other part.
- Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/route-progress.mdThe index of every part is at /llms.txt.