

Every state


default


hover


focus


overdue


due-today


menu


minimal
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string; | "task-t6" | Id of the card; the menu hangs off it. |
| title | string; | "Update shipping rates for heavy parcels" | Title text. |
| href | string; | "#t6" | Where the card opens (the task's page or a `#id` your board turns into a dialog). |
| labels | KanbanCardTaskLabel[]; | [ { name: "Shop", tint: 2 }, { name: "Warehouse", tint: 4 }, ] | Labels above the title. Empty: none. |
| assignee | KanbanCardTaskPerson | null; | { name: "Daniel Okafor", photo: photo("daniel") } | Who does it. Null: no face. |
| due | string | null; | "2026-11-26" | Due date as YYYY-MM-DD. Null: no date. |
| comments | number | null; | 5 | Number of comments. Null: no count. |
| attachments | number | null; | 2 | Number of attachments. Null or 0: no count. |
| now | string; | – | ISO date-time that counts as now, so overdue is fixed (demos, tests). Leave out to use the visitor's clock. |
| locale | string; | "en-GB" | Locale for numbers and dates. |
| timeZone | string; | "Europe/Amsterdam" | Time zone of the board: a date is overdue once its day has ended there. |
| moveTo | string[] | null; | ["Backlog", "In review", "Done"] | Names of the columns the card can move to. Null or empty: no menu. |
| onMove | (column: string) => void; | – | Called with the column's name when one is picked in the menu. |
| words | { due: string; dueToday: string; overdue: string; labels: string; assignedTo: string; comments: (count: number) => string; attachments: (count: number) => string; actions: string; moveTo: string; }; | { due: "Due", dueToday: "Due today", overdue: "Overdue", labels: "Labels", assignedTo: "Assigned to", comments: (n) =… | Words. |
| className | string; | – | Extra classes on the outer element. |


