Skip to content
caliper ui pro docs

Timeline

Events in order with dates and markers.

Pro
  1. Monday

    Completed: Order placed

    Order NW-2210 · 3 items

  2. Completed: Payment captured

    Visa ending 4242

    Authorization 7F3A91 · Net $128.40 · Fee $3.99. Receipt sent to billing@northwind.example.
  3. Tuesday

    Completed: Packed at Leeds warehouse

  4. Today

    In progress: Out for delivery

    Courier will arrive between 1 and 3 PM

    Tracking ref LD-88-1204. The driver can be reached through the courier line if the address needs a gate code.
  5. Upcoming: Delivered

    Signature may be required

When to use

  • Showing history.

When not to use

  • Items need columns; use a table.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/timeline

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

Timeline

6 props
PropTypeDefault
label *string—
items *readonly TimelineItem[]—
expandedreadonly string[]—
defaultExpandedreadonly string[][]
onExpandedChange((ids: string[]) => void)—
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It is built on native elements and keeps aria-label, aria-hidden, aria-expanded and aria-controls in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/timeline.md

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

More in Threads