Kanban Board
Columns, drag between them, assignees, priority and progress per card.
PROGet Kanban Board and 168 other Pro components with pro lifetime — Get Pro
- Category
- Productivity
- Access
- ProPro · unlocked
- Source
- 1,123 lines · one file
When to use it
Use Kanban Board when work moves through stages: tasks, hiring pipelines, support tickets, content calendars. Give it columns of tasks and save the result in onChange; dragging between columns, assignees, priority, due dates and progress are drawn for you.
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 Kanban Board for this.
Install it: npx shadcn@latest add @liro/kanban-board
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/kanban-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
"use client";
import * as React from "react";
import { KanbanBoard, type KanbanColumn } from "@/components/ui/kanban-board";
const initial: KanbanColumn[] = [
{
id: "todo",
name: "To do",
accent: "slate",
tasks: [{ id: "t1", title: "Write onboarding emails", priority: "high", assignees: [{ name: "Ana Diaz" }] }],
},
{ id: "doing", name: "In progress", accent: "blue", tasks: [] },
{ id: "done", name: "Done", accent: "emerald", tasks: [] },
];
export function ProjectBoard() {
const [columns, setColumns] = React.useState(initial);
return <KanbanBoard label="Launch tasks" columns={columns} onChange={setColumns} />;
}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.
| Type | Notes | ||
|---|---|---|---|
columns | KanbanColumn[] | Yes | – |
onChange | (columns: KanbanColumn[]) => void | No | Fires after every move with the whole board. |
label | string | No | Accessible name for the scrolling region. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLiro foundations, installed alongside it
liro-themeAccessibility
- 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