Skip to content
caliper ui pro docs

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.

Pro

Billing redesign

TaskStartDays
5 Oct10
Interviews5 Oct5
Synthesis12 Oct3
15 Oct14
Flows15 Oct7
Visual design19 Oct10
19 Oct36
API19 Oct12
Front end29 Oct16
QA16 Nov5
Launch23 Nov—
Interviews
Flows
Visual design
API
Front end
QA

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

terminal
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
PropTypeDefault
tasks *readonly GanttTask[]—
onTasksChange *(tasks: GanttTask[]) => void—
todaystringnew Date().toISOString().slice(0, 10)
zoom"month" | "day" | "week""week"
labelstring"Project plan"
classNamestring—

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.md

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

More in Work tracking