Loading component…
Loading component…
A Kanban board with search, labels, drag and drop, and editable task details.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import TaskBoard from ./task-board.
import { TaskBoard } from "@/components/ui/task-board";
export function Sprint({ tasks }) {
return (
<TaskBoard
tasks={tasks}
statuses={statuses}
labels={labels}
people={people}
path={["Northwind", "Launch", "Sprint 12"]}
onChange={save}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| tasks | Task[] | key, title, status, priority (0–4), estimate, labels, assignee, dueIn, subtasks, pullRequest, created | |
| statuses | TaskStatus[] | Columns in order: id, label and icon | |
| labels | TaskLabel[] | id, label and color – used on cards, in the filter and in the panel | |
| people | TaskPerson[] | id, name and avatar for assignees | |
| path | string[] | Breadcrumb above the board | |
| onChange | (tasks: Task[]) => void | Called with all tasks after every move, edit, add or delete |
Columns keep a minimum width and the board scrolls sideways on narrow screens
Long titles stop at three lines (full title in the panel); keys, labels, column names and the breadcrumb end in an ellipsis and show in full on hover; more than three labels fold into +N; column counts above 999 read 999+
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"