# Shadcn Capacity Board

> Gantt chart with weekly capacity board

- Type: example, free and open source (MIT)
- Component: [Gantt](https://reui.io/components/gantt.md)
- Page: https://reui.io/components/gantt/c-gantt-4
- 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-4")`
- Registry item: https://reui.io/r/styles/base-nova/c-gantt-4.json
- Uses: Avatar, Button, Card, Gantt

## Best for

Teammates grouped by squad with avatar row labels and shaded weekends, where added assignments stack into extra lanes

## Agent notes

- `resourceMeta` maps each row id to initials and a `randomuser.me` photo, since `GanttResource` takes no custom fields
- `addAssignment` is a demo stub that cycles `PEOPLE` and `TASK_POOL`; swap in your own booking flow

## When not to use

- Owner and status columns beside each task in a report that cannot be dragged: use [Task Table](https://reui.io/components/gantt/c-gantt-5.md) (`get_example("c-gantt-5")`)

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

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