Shadcn Gantt Drag Reorder
Gantt chart with drag-to-reorder tree rows. Built by composing Card, Gantt, Gantt Nav, Gantt Types, Gantt View. Uses date-fns alongside the shadcn primitives. A free, open source shadcn gantt example you can install with npx shadcn@latest add @reui/c-gantt-2 and edit as your own code.
Gantt chart with drag-to-reorder tree rows
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: The leanest setup, where one callback adds a drag grip to every tree row and a single setState keeps the new order
When to use
- Project plans where a tree of phases and tasks owns bars dragged and resized along a time axis
- Roadmaps, status reports and team capacity views read anywhere from a single day to a whole year
- Delivery tracked against a frozen plan, or work chained by dependency arrows and milestone diamonds
When not to use
- Records dragged into a new order in a table with no dates: use the Data Grid component
- A finished planner page with an edit dialog, dispatch rows and rules checked on drop: use the Gantt blocks
- A quarter of sales deals grouped by account, beside board, table and calendar views: use the CRM blocks
- A list of dated steps or updates read in order, with no bars to drag or resize: use the Timeline component
Agent notes
- The row grip shows only when
onResourceReorderis passed, andresourcesmust be state it updates or a drop changes nothing - Replace
buildBars, which dates its sample bars from the start of the current week, with your own records - Every example seeds bars through
defaultEventsalone; passeventswithonEventsChangeto keep edits in your store
Third-party API docs
- date-fns v4: docs
https://reui.io/components/gantt/c-gantt-2.mdget_example("c-gantt-2")npx shadcn@latest add @reui/c-gantt-2About Shadcn Gantt Drag Reorder
Gantt chart with drag-to-reorder tree rows. Built by composing Card, Gantt, Gantt Nav, Gantt Types, Gantt View. Uses date-fns alongside the shadcn primitives. A free, open source shadcn gantt example you can install with npx shadcn@latest add @reui/c-gantt-2 and edit as your own code.
What You Can Build With Shadcn Gantt Drag Reorder
- Composes Card, Gantt, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-gantt-2
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Gantt Examples
- Settings Menu Gantt chart with settings menu and schedulable rows
- Quarter Roadmap Gantt chart with quarter roadmap and rollups
- Capacity Board Gantt chart with weekly capacity board
- Task Table Gantt chart with task table and progress
- Baseline Tracking Gantt chart with as-built baseline tracking
- Dependencies & Milestones Gantt chart with dependency arrows and milestones
Related Shadcn Component Categories
Open-source shadcn hover card components for profile previews, rich link previews, and contextual details.
Open-source shadcn icon tile components for list row media, feature cards, empty states, and dashboard tiles.
Open-source shadcn input components for form entry, search fields, and auth screens.
Open-source shadcn input group components for prefixed inputs, suffixed actions, and combined form controls.
Open-source shadcn OTP input components for verification codes, 2FA flows, and secure confirmation screens.
Frequently Asked Questions
When should I use Shadcn Gantt Drag Reorder?
Use it for the leanest setup, where one callback adds a drag grip to every tree row and a single setState keeps the new order.
Shadcn Gantt as a whole fits:
- Project plans where a tree of phases and tasks owns bars dragged and resized along a time axis
- Roadmaps, status reports and team capacity views read anywhere from a single day to a whole year
- Delivery tracked against a frozen plan, or work chained by dependency arrows and milestone diamonds
For records dragged into a new order in a table with no dates, use the Data Grid component. For a finished planner page with an edit dialog, dispatch rows and rules checked on drop, use the Gantt blocks. For a quarter of sales deals grouped by account, beside board, table and calendar views, use the CRM blocks. For a list of dated steps or updates read in order, with no bars to drag or resize, use the Timeline component.
How do I install Shadcn Gantt Drag Reorder?
Is Shadcn Gantt Drag Reorder free to use?
Which components does Shadcn Gantt Drag Reorder use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.