

Every state


default


hover


focus


at-limit


over-limit


collapsed


no-limit
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "col-progress" | Id of the header; the name hangs off it. |
| name | string | "In progress" | Name. |
| count | number | 4 | Number of cards in the column. |
| wip | number | null | 6 | Work-in-progress limit. Null: no limit, no meter. |
| tint | 1 | 2 | 3 | 4 | 5 | null | 1 | A `--chart-*` colour (1–5) for the dot before the name. Null: no dot. |
| controls | string | – | Id of the column's card list, which collapsing hides. Left out: no `aria-controls`. |
| defaultCollapsed | boolean | false | The column starts collapsed. |
| onCollapsedChange | (collapsed: boolean) => void | – | Called with true when collapsed and false when opened. |
| onAdd | () => void | – | Called when the add button is pressed. Null for `addLabel`: no add button. |
| addLabel | ((name: string) => string) | null | (name) => `Add a card to ${name}` | Accessible name of the add button ("Add a card to In progress"). Null: no add button. |
| words | { cards: (count: number) => string limit: (wip: number) => string atLimit: string overLimit: (by: number) => string collapse: (name: string) => string expand: (name: string) => string } | { cards: (n) => (n === 1 ? "1 card" : `${n} cards`), limit: (n) => `limit ${n}`, atLimit: "At limit", overLimit: (by)… | Words. |
| className | string | – | Extra classes on the outer element. |
More kanban cards
All 5kanban-card-02 is in UI ProGet UI Pro, €199


