Skip to content
caliper ui pro docs

Resource timeline

People, rooms or machines down the side and time across: bookings in lanes, double bookings flagged, drag to move, resize or create, Alt and the arrows to do the same from the keyboard, and day or week views.

Pro

Wednesday 14 October

1 double booking
Resource
Inês CarvalhoElectrician
Rewire kitchen · Rua Nova 408:30–12:00
Socket check13:00–14:00
Kofi MensahPlumber
Boiler leak09:00–11:00
Bathroom fit10:30–16:00
Ella LindqvistElectrician
Office lighting11:00–17:00
Dev PatelApprentice
Shadow Inês08:30–12:00
Elias KimGas engineer
Annual service ×309:30–15:30

Drag to move or create. Focus a booking and press Alt with ← → to move it in time, ↑ ↓ to give it to someone else, Shift to change its length.

When to use

  • Rotas, room and equipment booking, field service dispatch.
  • Capacity planning by person.

When not to use

  • One person’s week; use the calendar.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/resource-timeline

Adds its 5 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

ResourceTimeline

13 props
PropTypeDefaultDescription
resources *readonly TimelineResource[]—
bookings *readonly TimelineBooking[]—
onBookingsChange *(bookings: TimelineBooking[]) => void—
date *string—Any day in the period shown, "2026-10-14".
onDateChange *(date: string) => void—
view"day" | "week"—
onViewChange((view: "day" | "week") => void)—
startHournumber7
endHournumber20
nowstring—Local date-time for the now line; defaults to the clock.
onCreate((resourceId: string, start: string, end: string) => TimelineBooking | null | undefined)—Called after an empty row is dragged across. Return the new booking, or nothing to cancel.
labelstring"Bookings"
classNamestring—

Keyboard

↑
Moves to the previous item or value.
↓
Moves to the next item or value.
←
Moves to the previous item or value.
→
Moves to the next item or value.

Accessibility

It exposes status, grid, row, columnheader, rowheader and gridcell semantics, with aria-labelledby, aria-label, aria-hidden, aria-live and aria-describedby 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/resource-timeline.md

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

More in Calendar & media