DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.1K
  1. Components
  2. Gantt

Shadcn Gantt

View docs

Browse 5 production-ready shadcn gantt components built on a headless-first ReUI primitive. Covers a resizable task tree, day through year scales, zoom, drag and resize scheduling with live validation, summary rollups, and a settings-driven feature tour - all composable with shadcn Button, Checkbox, Context Menu, and Tooltip.

Shadcn Gantt: Project Timelines with Tree and Scales for React

ReUI Gantt is a custom shadcn component with a headless-first architecture: a subscribable store owns the scale, date window, selection, and interactions, while GanttView renders split resizable tree and timeline panes with synced scrolling. Bars are plain data you can wire to any backend.

The primitive ships with day, week, month, quarter, and year scales, zoom with a floating control, infinite scrolling, summary rollups on parent rows, per-bar progress, edge resize and drag scheduling with live validation, and off-screen indicators that scroll to hidden bars.

The sections below cover what ReUI Gantt provides, why teams adopt it for project and resource planning, and how it composes with Checkbox, Context Menu, Tooltip, and other shadcn primitives.

What is Shadcn Gantt?

ReUI Gantt is a custom project-timeline component for React, not part of the base shadcn/ui library. It follows a headless-first design: Gantt provides the store and context, GanttNav renders Today, a scale switcher, prev/next and the period title, and GanttView renders the split tree and timeline body. The tree panel supports extra columns, a pinned name column, and a resizable splitter.

Bars are plain objects ({ id, title, start, end, color, progress, resourceId }) attached to tree rows by resourceId, handed in as controlled or uncontrolled state. Every mutation flows through an external CRUD contract (onEventsChange, onEventUpdate, canDropEvent), so persisting to a REST API, GraphQL mutation, or Next.js Server Action is a one-liner.

Why Use Shadcn Gantt?

Gantt charts appear in project management tools, resource planners, release trackers, and agency capacity boards. Most React gantt libraries are heavyweight, canvas-based, and hard to restyle; ReUI Gantt is copy-and-own DOM source styled with your Tailwind tokens, so the chart matches the rest of your shadcn/ui app out of the box.

The interaction engine validates gestures live (canDropEvent) and gates commits (onEventUpdate with a source discriminator), which makes business rules such as locked release gates, one-bar-per-task policies, and no-overlap rows straightforward. Pair it with Shadcn Data Grid for backlog views and Shadcn Kanban for status boards.

Shadcn Gantt Features

  • Split Tree and Timeline Panes. A resizable splitter divides the multi-column task tree from the timeline. Vertical scrolling stays perfectly synced, the name column stays pinned, and groups collapse and expand.
  • Day Through Year Scales with Zoom. Five scales with a grouped two-row header, a floating zoom control with configurable bounds, and infinite scrolling that extends the range as you approach an edge.
  • Drag Scheduling with Live Validation. Bars resize from either edge and move along the time axis with snapping; canDropEvent paints invalid ghosts live and onEventUpdate is the final commit gate, with drag-create available on empty tracks.
  • Progress and Summary Rollups. Bars render a subtle progress fill from a 0 to 100 value, and parent rows show envelope summary strips with duration-weighted progress; the rollup math is overridable.
  • Tree Columns and Row Selection. Add typed columns (due dates, assignees, priorities) after the built-in name column, drop a columns menu into the header slot, and select leaf rows with built-in checkboxes.
  • Off-Screen Indicators. Edge chips point to bars scrolled out of view and scroll the timeline to them on click, so long timelines stay navigable.
  • Headless State, Composable UI. useGanttState can be hoisted and adopted by multiple surfaces, an apiRef exposes an imperative API, and renderers exist for bars, tree labels, context menus, drag previews, hints, and summaries.

ReUI Gantt: In-House Custom Shadcn Component

ReUI Gantt is an in-house component built and maintained by the ReUI team as part of the ReUI open-source library. It follows the same copy-and-own installation model as every shadcn/ui component: the source lands directly in your repository as a set of composable files (root, view, nav, bar, interaction engine, recurrence, i18n, types), and you own, extend, and style it with your Tailwind CSS tokens.

The component is available in two API flavors to match your primitive stack: a Radix UI version for teams using Radix-based shadcn primitives, and a Base UI version for teams on @base-ui/react. Both versions share identical visual output and Tailwind CSS styling - only the underlying headless primitive differs. ReUI maintains 19 such in-house components, all available in both Radix and Base UI versions, each with dedicated documentation covering the full component API, usage examples, and prop references.

Integrating With Other Components

Pair the gantt with Shadcn Data Grid for a sortable backlog view of the same tasks, and with Shadcn Event Calendar when plans are date-driven rather than resource-driven.

Use Shadcn Context Menu for bar and row actions, Shadcn Avatar in custom tree columns for assignees, and Shadcn Badge for status and priority chips inside custom bar renderers.

Wrap the gantt nav in its toolbar slot with Shadcn Button actions, and use Shadcn Sonner for async feedback when schedule changes are persisted to a backend.

Gantt Blocks in ReUI Pro

The free examples above pair with 2 production ready gantt blocks in ReUI Pro, complete sections built on the same primitives and ready to copy into your app.

  • Gantt (2 blocks)Gantt chart blocks with task trees, timeline bars, split panes, and inline editing for roadmaps.

Browse all Application blocks

Frequently Asked Questions

Previous19 Shadcn Frame Components
Next8 Shadcn Hover Card Components

Application

  • App Shell
  • Auth
  • Card
  • Chart
  • Dashboard
  • Dialog
  • Empty State
  • Event CalendarNew event calendar block added
  • Form
  • GanttNew gantt block added
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Wizard

Solutions

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

eCommerce

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

Data Grid

  • Base
  • Columns
  • Drag & Drop
  • EditingNew editable Data Grid block added
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Marketing

  • Blog
  • Contact
  • CTA
  • FAQ

Resources

  • Components
  • Blocks
  • Docs
  • Support
  • Pricing
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

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

© 2026ReUI · All rights reserved

3.1K

Gantt chart with settings menu and schedulable rows

Gantt chart with drag-to-reorder tree rows

Gantt chart with quarter roadmap and rollups

Gantt chart with weekly capacity board

Gantt chart with task table and progress