

Every state


default


hover


focus


expanded


complete
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "task-t5" | Id of the card; the parts hang off it. |
| title | string | "Set up the pre-order discount" | Title text. |
| href | string | "#t5" | Where the card opens. |
| label | { name: string; tint: 1 | 2 | 3 | 4 | 5 } | null | { name: "Shop", tint: 2 } | A label above the title, on a `--chart-*` tint (1–5). Null: none. |
| assignee | { name: string; photo?: KanbanCardChecklistPhoto | null } | null | { name: "Aisha Rahman", photo: { src: "/components/kanban-card/kanban-card-checklist/aisha.webp" } } | Who owns the checklist. Null: no face. |
| subtasks | KanbanCardChecklistSubtask[] | [ { id: "s1", title: "Create the WINTER10 code", done: true }, { id: "s2", title: "Limit it to the winter glaze range… | Subtasks. |
| defaultOpen | boolean | false | The list starts open. |
| onToggle | (id: string, done: boolean) => void | – | Called with a subtask's id and its new state when it is ticked or unticked. |
| words | { progress: (done: number, total: number) => string complete: (total: number) => string subtasks: string assignedTo: string } | { progress: (d, t) => `${d} of ${t}`, complete: (t) => `All ${t} done`, subtasks: "subtasks", assignedTo: "Assigned t… | Words. |
| className | string | – | Extra classes on the outer element. |
More kanban cards
All 5kanban-card-01 is in UI ProGet UI Pro, €199


