Skip to content
Uxelith
Prov1.0.0Data

Gantt Chart

A project plan on a timeline: drag tasks to move them, pull an edge to change how long they run, drag from one task to another to link them. Waiting tasks move along, and the critical path shows what sets the end date.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
11 Nov 2026
Live

Installation

Usage

example.tsx
import { GanttChart } from "@/components/gantt-chart"

export function LaunchPlan() {
  return (
    <GanttChart
      title="Team plan launch"
      criticalTo="Team plan live"
      defaultShowCritical
      defaultTasks={[
        { id: "api", name: "Billing API", group: "Build", start: "2026-11-16", days: 9, progress: 30, assignee: "James Walker" },
        { id: "card", name: "Plan card", group: "Build", start: "2026-11-18", days: 6, assignee: "Hugo Tanaka" },
        { id: "qa", name: "QA & fixes", group: "Launch", start: "2026-11-25", days: 4, dependsOn: ["api", "card"] },
        { id: "live", name: "Team plan live", group: "Launch", start: "2026-11-29", days: 0, dependsOn: ["QA & fixes"] },
      ]}
    />
  )
}

Props

PropTypeDefaultDescription
tasks / defaultTasksGanttTask[][]Kept by you or by the component. A task has id, name, start ("2026-11-16"), days (0 for a milestone), and optional group, progress (percent), assignee, colour and dependsOn (ids or names).
onTasksChange(tasks, change) => void—Called after a move, resize, link or unlink with the change and the ids of tasks that moved with it.
titlestring—A heading for the plan.
zoom / defaultZoom"day" | "week" | "month""week"The scale; onZoomChange tells you when it changes.
showCritical / defaultShowCriticalbooleanfalseShows the chain of tasks that sets the end date.
criticalTostringthe last taskThe task (id or name) the critical path leads to.
canChange(change) => boolean—Veto a change, for example a task that is already done.
readOnlybooleanfalseLook and select, but no moving, resizing or linking.
locale / labelstring"en-US" / "Project plan"How dates are written, and the accessible name.

Accessibility

  • Every task is a button named with its dates, length, progress and whether it is on the critical path.
  • Left and Right move a task by a day; with Shift they change its length. Tasks that wait move along, and nothing moves before what it waits for ends.
  • Every change is announced through a polite live region, and Ctrl or Cmd Z or the toast's Undo takes it back.
  • Groups fold with a button that says how many tasks it hides; zoom buttons say which one is on.
  • Under prefers-reduced-motion nothing slides or pulses.

Changelog

  1. v1.0.0Latest

    First release.

More in Data

All 15 in Data
  • DataPro

    Area Chart

    Trends over time: lines draw themselves in, the crosshair glides between points, the area you've scrubbed stays bright, and the tooltip shows the change from the point before.

  • DataFree

    Avatar Stack

    Overlapping avatars that spread on hover, with a name tooltip that swings with the pointer, status dots and a +N list of everyone else. Photos or initials.

  • DataPro

    Bar Chart

    A responsive bar chart, grouped or stacked: bars rise in one after another, the hovered column lights up and the tooltip glides, with keyboard navigation and a hidden data table.