Gantt chart
A project plan on a time axis: grouped tasks, milestones, dependency arrows, the critical path, late dependencies flagged, and bars you drag or move with Alt and the arrows while dependent tasks follow.
Billing redesign
Alt and ← → move a task by a day; add Shift to change its length.
When to use
- Project and launch planning.
- Construction, events and anything with hard dependencies.
When not to use
- A backlog without dates; use the kanban board.
Installation
pnpm dlx shadcn@latest add @caliper/gantt-chart
Adds its 4 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
criticalPath
0 props
No props of its own; it accepts the native props of its root element.
shiftDependents
0 props
No props of its own; it accepts the native props of its root element.
GanttChart
6 props
Keyboard
- ←
- Moves to the previous item or value.
Accessibility
It exposes treegrid, row, columnheader, gridcell, button and status semantics, with aria-labelledby, aria-label, aria-level, aria-expanded, aria-hidden 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/gantt-chart.mdThe index of every part is at /llms.txt.