Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import KanbanBoard from ./kanban.
import { KanbanScreen } from "@/components/ui/kanban";
export default function Page() {
return <KanbanScreen workspace="Acme" user={{ name: "Alex Morgan" }} onNavigate={(label) => router.push(routes[label])} />;
}| Name | Type | Default | Description |
|---|---|---|---|
| onNavigate | (label: string) => void | Called with the label of a sidebar item | |
| workspace | string | "Acme" | Workspace name in the sidebar |
| user | { name: string; avatar?: string } | { name: "Alex Morgan" } | Account at the bottom of the sidebar |
| loading | boolean | While your data loads: gray cards (board) or rows (list) in the shape of the real ones, under the real column heads, so nothing jumps when the data lands | |
| empty | boolean | No issues yet: the bar, tabs and New task stay, the board or list gives way to one empty state – “No tasks yet”, a line on what shows up here and a New task button that opens the New issue window | |
| className | string | Extra class on the root | |
| columns | { id; label; tone: "low" \| "medium" \| "high" \| "done" }[] | The columns, left to right – tone picks the priority mark | |
| cards | { id; column; title; description?; status?: "review" \| "attention" \| "progress" \| "fixed"; comments?; attachments? }[] | The issues – column puts each one into a column; every card shows title, detail, status and counts |
Fills its container – give it the full viewport height in your app
The board scrolls sideways when the columns don't fit; on phones the bar wraps and list rows keep only the title and status
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"; colors are CSS variables on .ui-as