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.
Wednesday 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
- Rotas, room and equipment booking, field service dispatch.
- Capacity planning by person.
When not to use
- 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.
API reference
ResourceTimeline
13 props
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.mdThe index of every part is at /llms.txt.