Order tracker
Where an order is: finished stages ticked, the line filling to the current one with the van moving along it, and the next stage's time.
Arriving today, 14:00–16:00
- Ordered, doneSat 18:02
- Packed, doneMon 09:15
- On the way, in progressToday 08:40
- DeliveredExpected 14:00
When to use
- Deliveries, shipments and service visits.
- Any process customers wait on in stages.
When not to use
- Internal workflows; use the step loader or timeline.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/order-tracker
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
OrderTracker
5 props
PropTypeDefaultDescription
stages *readonly OrderStage[]—
current *number—Index of the stage in progress.
progressnumber0.50 to 1: how far along the current stage is, e.g. distance driven.
etastring—e.g. "Arriving today, 14:00–16:00"
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-label, aria-hidden and aria-current kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/order-tracker.mdThe index of every part is at /llms.txt.