Skip to content
synccn

Gantt Chart

New

Tasks over days with progress, milestones, weekends, a today line and pinned names. No date library.

Task
Researchsynccn
Designsynccn
APIsynccn
Frontendsynccn
Beta
Launch
Nov 2026
Dec 2026
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

Click a bar or milestone

Installation

$ pnpm dlx shadcn@latest add @synccn/gantt-chart

First time in this project? Connect synccn with one command.

Usage

import { GanttChart } from "@/components/ui/gantt-chart";<GanttChart tasks={tasks} onTaskClick={open} />

API reference

Generated from the component's TypeScript types, so it always matches the code.

GanttChart

Timeline of tasks over days: bars with progress, milestones, weekends shaded, a today line and month headers. Scrolls sideways while names stay pinned. No date library needed.

  • tasksrequired
    GanttTask[]

    —

  • dayWidth
    number

    Default 28

    Width of one day in pixels.

  • onTaskClick
    (task: GanttTask) => void

    Called when a bar is clicked.

  • showToday
    boolean

    Default true

    Draws a line on today.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Keyboard

  • TabMove between tasks
  • EnterOpen a task

Accessibility

  • Each bar is a button labelled with its name, dates and progress.

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-label