sigilUI

Gantt Chart

Plot tasks and their durations along a timeline.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { GanttChart } from "@sigil-ui/components";

Usage

<GanttChart
    totalUnits={6}
    unitName="Sprint"
    groups={[
      {
        label: "Backend",
        tasks: [
          { id: "api", label: "API Design", start: 0, end: 2 },
          { id: "db", label: "Database", start: 1, end: 4 },
        ],
      },
      {
        label: "Frontend",
        tasks: [
          { id: "ui", label: "Components", start: 2, end: 5 },
          { id: "launch", label: "Launch", start: 5, end: 6, milestone: true },
        ],
      },
    ]}
  />

Props

PropTypeDefaultDescription
groupsGanttGroup[]——
totalUnitsnumber—Total number of time units on the x-axis.
unitLabelsstring[]—Labels for x-axis columns (e.g. week names, sprint names).
unitNamestringSprintUnit label shown in header.

Token integration

CSS VariablePurpose
--s-radius-cardRadius card
--s-borderBorder
--s-surfaceSurface
--s-text-mutedText muted
--s-surface-elevatedSurface elevated
--s-textText
--s-primaryPrimary
--s-radius-smRadius sm