Ida Lindqvisttoday
Write the newsletter
Write the newsletter
Photograph the rooms
Update the opening hours
npx shadcn add https://ui.klarhimmel.com/r/board.jsonCopy for AIColumns of cards a person moves between: drag, or the card's menu from the keyboard. Controlled, so the host's data stays the truth.
Import
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | required | Names the board for screen readers. |
columns | BoardColumn<T>[] | required | Required. tone is a colour such as var(--kh-status-doing) for the dot, number circle and status pill; actions sit right in the header. |
id | string | required | |
card | BoardCardFields | required | Required. title, number, person, meta, line (a quiet sentence under the title), status, chip { icon, text, overdue }. |
onOpen | void | - | The whole card opens; the menu has Open too. |
onMove | void | - | A person moved a card (drag, or the card menu). Controlled: the board changes nothing itself, so the host's data stays the only truth and a move the server refuses never shows as done. The board says and focuses the card once it appears in the new column. |
allowed | boolean | - | Whether a card may go to a column; menu items and drop targets that may not are greyed. Default: any other column. |
onReorder | void | - | A person put a card in a new place in its own column (drag between cards; Felix 28 Oct "organize the lists by dragging cards"). `before` is the card it now sits above, null for last. Controlled like onMove: the host writes the order and the board redraws it. A column takes reorders where `reorderable` says (default: every column, when onReorder is given). |
reorderable | boolean | - | |
menu | { key: string; title: ReactNode; go: () => void }[] | - | Extra items for a card's ⋯ menu, above the moves (an app's 'Move to top'). |
draggable | boolean | - | Whether a card can be dragged. Default: when the board has onMove. The menu stays the keyboard way. |
fill | boolean | false | Fill the height it is given: columns run the full height and each well scrolls on its own. Off: columns are as tall as their cards. |
words | Partial<BoardWords> | - | Which column a phone opens on: the first in this order that has cards. Default: the columns' order. |
className | string | - | Extra classes, merged after the component's own. |