# Shadcn Task Table

> Gantt chart with task table and progress

- Type: example, free and open source (MIT)
- Component: [Gantt](https://reui.io/components/gantt.md)
- Page: https://reui.io/components/gantt/c-gantt-5
- Docs (Base UI): https://reui.io/docs/components/base/gantt.md
- Docs (Radix UI): https://reui.io/docs/components/radix/gantt.md
- MCP: `get_example("c-gantt-5")`
- Registry item: https://reui.io/r/styles/base-nova/c-gantt-5.json
- Uses: Avatar, Badge, Button, Card, Gantt

## Best for

A read only status report whose tree panel adds Owner avatars and Status badges as columns, with rows added from the toolbar

## Agent notes

- Owner and Status cells read the `meta` state by row id, so a row added without a `meta` entry renders empty cells
- Drag, resize and slot selection are off through `defaultInteractions`, so bars change only through `addTask`

## When not to use

- A plan whose bars should be dragged and resized on the chart: use [Settings Menu](https://reui.io/components/gantt/c-gantt-1.md) (`get_example("c-gantt-1")`)

## Third-party libraries

- date-fns v4: [docs](https://date-fns.org/v4.1.0/docs/Getting-Started)

## Install

```bash
npx shadcn@latest add @reui/c-gantt-5
```

## About Shadcn Gantt

### 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

- A finished planner page with an edit dialog, dispatch rows and rules checked on drop: use the [Gantt blocks](https://reui.io/blocks/application/gantt.md)
- A quarter of sales deals grouped by account, beside board, table and calendar views: use the [CRM blocks](https://reui.io/blocks/solutions/crm.md)
- A list of dated steps or updates read in order, with no bars to drag or resize: use [Timeline](https://reui.io/components/timeline.md) (`get_component("timeline")`)

### Agent notes

- 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

Every ReUI item has a twin like this one; the index is https://reui.io/llms.txt. Agents with the ReUI MCP (https://reui.io/docs/mcp) get the same guidance from the getters named above.
