Delegate Board

Hand work to agents by dragging it onto them, with their new busy-until on hover.

PROGet Delegate Board and 168 other Pro components with pro lifetime — Get Pro

Category
AI Agent
Access
Pro
Source
713 lines · one file
States
7 drawn
Added
21 Oct 2026

The decision inside it

An agent refuses the drop before you let go

Dropping "Send the invoice" on an agent with no billing access, and finding out an hour later, is the failure it prevents. While you drag over an agent it shows either "Busy until 14:20 (+12 min)" or "Can't: no billing access", and an agent that can't take it does not accept the drop.

When to use it

Use Delegate Board to hand queued tasks to agents by drag or keyboard, with each agent's load and busy-until, refusals for agents that lack a needed skill, and an Auto mode. Pass refuse for your own rules.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Liro's Delegate Board for this.
Install it: npx shadcn@latest add @liro/delegate-board
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/delegate-board.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @liro registry with your CLI token: see the Namespaced tab.

Usage

components/delegate.tsx
import { DelegateBoard, type DelegateAgent, type DelegateTask } from "@/components/ui/delegate-board";

const tasks: DelegateTask[] = [
  { id: "t1", title: "Send the October invoice", estimateMin: 10, needs: ["billing"], priority: "high" },
  { id: "t2", title: "Summarise the renewal thread", estimateMin: 15, needs: ["email"] },
];

const agents: DelegateAgent[] = [
  { id: "ana", name: "Ana", role: "Billing agent", skills: ["billing", "email"], queuedMin: 20, maxLoadMin: 60 },
  { id: "rex", name: "Rex", role: "Research agent", skills: ["email", "search"], queuedMin: 5 },
];

export function Delegate({ assign }: { assign: (taskId: string, agentId: string) => Promise<void> }) {
  return <DelegateBoard tasks={tasks} agents={agents} onAssign={assign} />;
}

API reference

“Copy prompt” above puts a full brief on your clipboard, install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

TypeNotes
tasksDelegateTask[] YesThe unassigned queue.
agentsDelegateAgent[] Yes–
autoboolean NoSend each new task to the compatible agent free first.
defaultAutoboolean No–
onAutoChange(on: boolean) => void No–
onAssign(taskId: string, agentId: string) => void | Promise<void> NoMay return a promise; the card is pending until it settles and goes back if it rejects.
onUnassign(taskId: string, agentId: string) => void | Promise<void> NoMay return a promise.
refuse(task: DelegateTask, agent: DelegateAgent) => string | null NoA reason this agent can't take this task, or null. Runs after the skills check.
nowDate | number NoFix the clock, for screenshots and tests.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Liro foundations, installed alongside it

liro-theme

States

All of them are drawn by the component. None is left for you to design.

  • Queue
  • Dragging
  • Refused
  • Assign pending
  • Assign failed
  • Auto
  • Overloaded

Accessibility

  • Keyboard reachable throughout, in visual order
  • Focus trapped in overlays, Escape closes them
  • Focus returns to whatever opened it
  • Live regions announce what changed, not that something did
  • Honours prefers-reduced-motion

Responsive behavior

  • Sizes to its container, not the viewport
  • Usable from 320px up
  • Pointer-based interaction, so trackpad and touch both work
  • No hover-only affordances