Back to blocks
BlockDashboard / ApplicationFree

Gantt Chart React component

A project timeline with tasks grouped into collapsible phases, bars you drag to move or stretch to resize, milestones, dependency arrows that turn red and dashed when a task starts too early, one-click auto-scheduling, day and week zoom, a today line, keyboard moves and a details bar with a progress slider.

About the Gantt Chart component

Gantt Chart lays a project out on a timeline: tasks grouped into phases, each a bar from its start to its end, with milestones as diamonds and arrows showing what has to finish first.

You can plan right on the chart. Drag a bar to move it, drag its right edge to change its length, and set progress from the details bar. If a task now starts before something it depends on is done, the arrow turns red and Auto-schedule fixes every conflict in one click.

When to use it

Use it for project plans, launches, roadmaps with dates, production schedules or anything where order and timing both matter.

For work without dates that moves through stages, a kanban board is a better fit.

Installation

Add the Gantt Chart component to your project with the shadcn CLI. It lands in components/gantt-chart.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/gantt-chart

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More Dashboard / Application components

Dashboard Header
Free
Event Calendar
Free
Dashboard Footer
Free
Vertical Navigation
Free
Multi View Switcher
Free
Radio Group Cards
Free