DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Gantt
  3. Gantt Drag Reorder
DocsMarkdownShare

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 onResourceReorder is passed, and resources must 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 defaultEvents alone; pass events with onEventsChange to keep edits in your store

Third-party API docs

  • date-fns v4: docs
Markdownhttps://reui.io/components/gantt/c-gantt-2.md
MCPget_example("c-gantt-2")
Installnpx shadcn@latest add @reui/c-gantt-2
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Gantt Drag Reorder

  • Card
  • Gantt

Dependencies

  • date-fns

About 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

  • Hover Card

    Open-source shadcn hover card components for profile previews, rich link previews, and contextual details.

  • Icon Stack

  • Icon Tile

    Open-source shadcn icon tile components for list row media, feature cards, empty states, and dashboard tiles.

  • Input

    Open-source shadcn input components for form entry, search fields, and auth screens.

  • Input Group

    Open-source shadcn input group components for prefixed inputs, suffixed actions, and combined form controls.

  • Input Otp

    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?

Run npx shadcn@latest add @reui/c-gantt-2. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Gantt Drag Reorder free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Gantt Drag Reorder use?

It composes Card, Gantt. The shadcn CLI installs those alongside the example.
PreviousSettings MenuNextQuarter Roadmap

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K