185 Pro components and page blocks

Get Pro

Updated

Gantt Chart

Pro

Preview

Customize

Day width40px
Days35
Color

Installation

Pro

Gantt Chart is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/gantt-chart

Usage

import { GanttChart } from "@/components/uibrik/gantt-chart/gantt-chart";​const defaultTasks = [  { id: "research", name: "User research", start: "2026-11-02", duration: 4, progress: 1, assignee: "Amara Obi", color: DESIGN },  { id: "wires", name: "Wireframes", start: "2026-11-06", duration: 5, progress: 1, dependsOn: ["research"], assignee: "Rina Sato", color: DESIGN },  // …6 more];​const avatars = {  "Amara Obi": "/registry/gantt-chart/amara.webp",  "Rina Sato": "/registry/gantt-chart/rina.webp",  "Jonas Berg": "/registry/gantt-chart/jonas.webp",  "Theo Marsh": "/registry/gantt-chart/theo.webp",};​<GanttChart  cascade  showDependencies  showWeekends  editable  dayWidth={40}  days={35}  color="#4f8cf0"  defaultTasks={defaultTasks}  avatars={avatars}  today="2026-11-12"  locale="en-US"  onTasksChange={(tasks) => {}}  // tasks={[…]}  // GanttTask={{ id: "…", name: "…", start: "…", duration: 0 }}  // from="…"/>

Where to use Gantt Chart

  • Project and roadmap planning

    Dragging one task pushes everything that waits on it, so the knock-on effect of a slip is visible straight away.

    Pairs with Kanban Board

  • Agency and client schedules

    Drag from one task to another to link them, and hover a task to light up its whole chain.

    Pairs with Issue Tracker

  • Launch plans in dashboards

    Progress fills each bar and a today line shows what should be done by now.

    Pairs with Project Dashboard

Props

GanttChart
cascade
Type boolean
true
Moving a task pushes every task that depends on it.
showDependencies
Type boolean
true
Draw an arrow from each task to the tasks that wait on it.
showWeekends
Type boolean
true
Shade Saturdays and Sundays.
editable
Type boolean
true
Let bars be dragged, resized, scrubbed, linked and moved with the arrow keys.
dayWidth
Type number
40
Starting width of one day. The + and − buttons zoom from there.
days
Type number
35
Days on the grid.
color
Type string
"#4f8cf0"
Colour for tasks without their own `color`, and for focus rings.
tasks
Type GanttTask[]
–
Tasks (controlled). Pair with onTasksChange.
GanttTask
Type { id: string; name: string; start: string; duration: number; progress?: number; dependsOn?: string[]; assignee?: string; color?: string }
–
`start` is "YYYY-MM-DD"; `duration` in days, 0 for a milestone; `progress` from 0 to 1; `color` tints the bar, e.g. one per workstream.
defaultTasks
Type GanttTask[]
SAMPLE_TASKS
Tasks on mount (uncontrolled).
onTasksChange
Type (tasks: GanttTask[]) => void
–
Called with every task after a drag, resize, progress change, new or removed dependency, or arrow key, including tasks pushed along.
avatars
Type Record<string, string>
SAMPLE_AVATARS
Photo URL for each assignee name. Assignees without one show their initials.
from
Type string
–
First day on the grid. Defaults to the Monday before the earliest task.
today
Type string
–
Day of the today line. Defaults to the visitor's today, set after mount.
locale
Type string
"en-US"
Locale for month and day labels.
className
Type string
–
Classes for the card.