Skip to content
caliper ui pro docs

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.

Pro

Order 4821

Arrives about 120 min

  1. WarehouseLeft 9:05
  2. Sorting hubScanned 11:40
  3. Local depotOut for delivery
  4. 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

terminal
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.

PropTypeDefaultDescription
stops *RouteStop[]—Places along the route, first to last. They are spaced evenly.
progress *number—How far along the whole route the journey is, from 0 to 1.
etastring—Shown beside the route, e.g. "Arrives 4:20 pm".
labelstring"Journey"Names the journey, e.g. "Order 4821".

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.md

The index of every part is at /llms.txt.

More in Compare & browse