About Shadcn UI Gantt Chart Blocks
A gantt chart lays work out on a calendar as bars, so teams can see what happens when, what overlaps and what is running late. These three shadcn gantt chart blocks turn that idea into full screens: a product roadmap grouped by team, a construction schedule grouped by phase and a resource planner with one lane per person.
Like the rest of our shadcn blocks, they are written in React and TypeScript and styled with Tailwind CSS. The timeline is the Kibo UI Gantt component, and everything around it is made of shadcn ui components such as Toggle Group, Button Group, Select, Dialog, Sheet, Popover, Calendar and Avatar. Status colors come from your theme tokens, so the bars match your shadcn components in light and dark mode.
Key Elements of a Gantt Chart
- Time scale: a header with days, months or quarters and a way to switch and zoom it.
- Grouped bars: items organized by team, phase or person, with a name, owner and progress on the bar.
- Today line and markers: a clear line for the current date and labeled milestones or releases.
- Status legend: a color for planned, in progress, done or blocked work, always paired with a text label.
- Editing: drag to reschedule and a detail panel or popover for dates, owner and progress.
Where and Why to Use Gantt Chart Blocks
Timelines are among the hardest views to build well: date math, drag handles, scrolling to today, grouping and forms that keep start and end dates valid. These shadcn ui blocks handle that work and keep the interface consistent with the rest of your Tailwind CSS app, so you can focus on connecting real projects and people.
- Product roadmaps: share upcoming features by team and release date with stakeholders.
- Construction and field projects: schedule phases, track progress on site and flag late tasks.
- Agencies and consultancies: book staff on client projects and avoid overloading anyone.
- Event and campaign planning: line up preparation tasks against a fixed launch or event date.
- Internal tools: add a timeline tab to a project management or PSA product.
Gantt Chart Blocks in This Collection
- Gantt Chart 1: Pick it when product managers need to show which team ships what and when, and want to filter teams and edit a feature without leaving the roadmap.
- Gantt Chart 2: Made for day level project control, where a site manager searches tasks, filters by assignee and needs late work to stand out.
- Gantt Chart 3: Answers “who is free next month?” for agencies and service teams, with monthly load per person and leave shown in the same lane.
Similar Block Categories
- Kanban Board: offer a stage based board next to the timeline for the same tasks.
- Event Calendar: show meetings and deadlines in a day, week or month calendar.
- Todo App: give each person a simple list of the tasks assigned to them.
- Stat Cards: add project totals such as open tasks, overdue items or team load.
- Dashboard Shell: place the timeline inside a full app layout with navigation.
Accessibility
Sidebar rows in Gantt Chart 1 and 2 are focusable buttons that open the detail sheet with Enter, and the bars in Gantt Chart 3 are focusable popover triggers with an aria-label that names the project and person. Zoom buttons have aria-labels, the range toggles in Gantt Chart 1 and 2 are labeled “Timeline range”, and the task forms in Gantt Chart 2 link every FieldLabel to its input, select or date button. Status colors are always paired with a text label or badge.
Dragging bars needs a pointer, so the date pickers in the detail sheets and the shift buttons in Gantt Chart 3 act as keyboard alternatives. Consider adding htmlFor and matching ids to the select and date fields in the Gantt Chart 1 sheet and the Gantt Chart 3 dialog, and an aria-label to the client filter and range toggle in Gantt Chart 3.
Gantt Chart FAQ
components/ui/gantt.tsx, adapted from Kibo UI. It imports @dnd-kit/core and @dnd-kit/modifiers for dragging, date-fns for date math, jotai for shared drag state, lodash.throttle and @uidotdev/usehooks, plus the shadcn Card and Context Menu components. The blocks themselves also use date-fns, and the date pickers rely on react-day-picker through the shadcn Calendar.onMove handler receives the item id with the new start and end and updates state. A click that moves less than 4 pixels counts as a click, so the same bar can still open its details. Gantt Chart 3 also offers buttons that shift a booking one week earlier or later.onAddItem to the GanttProvider, so hovering an empty part of a row shows an add button that opens the Add task or Assign work dialog with that date filled in. Gantt Chart 1 adds features from the New feature button instead.handleMove, createFeature, handleSave and submitAssign.
