For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: Bookings that each take a percent of someone's week, where a drag or resize past capacity is refused, with workstream and squad filters
When to use
- A full page planner whose rows of tasks, people or stages own bars that are dragged, resized and edited
- Schedules that check a rule on every drop: a locked bar, opening hours, upstream order or capacity
- Project roadmaps, one day field dispatch, agent run boards and team capacity plans
When not to use
- Tasks nested under lists, with owners, statuses and dependency arrows: use the Project Timeline block
- Timed visits within a single day, where a technician may be double booked: use the Technician Dispatch block
- Only the scheduling primitive, to wire into your own layout with no demo rules: use the Gantt component
- Deals re-dated on bars beside table, board and calendar views of the same records: use the CRM blocks
- A feed of past activity or milestones that people read rather than reschedule: use the Timeline blocks
Agent notes
- Replace
PEOPLE,SQUADSandBOOKINGSin data.ts; each booking'sstartOffsetandendOffsetcount days fromANCHOR_DATE saveSheetandduplicateBookingnever callwouldOverbook, so only a drag or resize is refused and a form save can overbook a personcancelBookingfrom the bar menu andclearRowfrom the row menu remove bookings with no confirm dialog, unlike the sheet- Each block wraps its
Cardin anh-svhpage withp-4padding; remove that wrapper when the board sits inside an app shell - Every block opens on a fixed 2026 demo day passed to
defaultDateand builds its bars around it; swap both for today and your records - Refused drops and saved changes call
toastfromsonner, and no block mounts a Toaster; render one in your app or those messages never appear
Third-party API docs
- date-fns v4: docs
- Sonner v2: API reference, docs
https://web.dev.reui.io/blocks/application/gantt/gantt-4.mdget_block("gantt-4")npx shadcn@latest add @reui/gantt-4Shadcn Components in the Resource Capacity Block
Dependencies
- cn
- date-fns
- sonner
Shadcn Resource Capacity Block
Capacity-aware resource gantt with booking cards, drag guardrails, and full CRUD. Part of the ReUI Shadcn Application Gantt blocks collection.
Capacity aware resource gantt with booking cards, drag guardrails and full CRUD
It is composed from Alert, Alert Dialog, Avatar, Badge, Button, Card, Checkbox, Context Menu, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Resource Capacity Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Application Gantt blocks to assemble a full screen instead of a single section.
All Shadcn Application Gantt Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Project Timeline Project gantt with resizable tree columns, split timeline panes, and inline editing
- Technician Dispatch Day dispatch gantt with technician rows and timed jobs on an hour grid
- Agent Playbook Agent playbook gantt with enforced stage dependencies, retry lanes, and a critical path
Related Shadcn Application Block Categories
- App Shell (35) App shell layouts with sidebar, rail, or top bar navigation for dashboards, settings panels, and multi-page apps.
- Auth (20) Login, register, forgot password, and two-factor authentication page layouts.
- Card (43) Card components for content display, data summaries, and interactive elements.
- Dashboard (8) Dashboard components and layouts that combine stats, charts, and tables into a complete overview screen.
- Dialog (14) Dialog components for modal windows, alerts, confirmations, and content overlays.
- Empty State (14) Empty state screens and no-data placeholders with recovery actions, onboarding prompts, and contextual guidance.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Resource Capacity block?
Use it for bookings that each take a percent of someone's week, where a drag or resize past capacity is refused, with workstream and squad filters.
The Gantt category fits:
- A full page planner whose rows of tasks, people or stages own bars that are dragged, resized and edited
- Schedules that check a rule on every drop: a locked bar, opening hours, upstream order or capacity
- Project roadmaps, one day field dispatch, agent run boards and team capacity plans
For tasks nested under lists, with owners, statuses and dependency arrows, use the Project Timeline block. For timed visits within a single day, where a technician may be double booked, use the Technician Dispatch block. For only the scheduling primitive, to wire into your own layout with no demo rules, use the Gantt component. For deals re-dated on bars beside table, board and calendar views of the same records, use the CRM blocks. For a feed of past activity or milestones that people read rather than reschedule, use the Timeline blocks.
What is the Resource Capacity block built with?
Can I restyle the Resource Capacity block?
How should I use Shadcn gantt blocks in a real project?
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.