Resource timeline
ProPeople, 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.
pnpm dlx shadcn@latest add @caliper/resource-timelineWednesday 14 October
1 double bookingDrag 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 #
Use it for
- Rotas, room and equipment booking, field service dispatch.
- Capacity planning by person.
Skip it when
- One person’s week; use the calendar.
Installation #
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.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source.
import { ResourceTimeline } from "@/components/ui/resource-timeline"
The worked example comes with Pro
The 45-line example behind the preview opens here with a Pro or Team licence.
API reference #
ResourceTimeline
component
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.
Motion #
Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.