Board
Generic kanban layout: a named, horizontally scrolling list of columns with headers, counts, actions, collapsible columns agents can toggle by name, groups and an empty slot. With a value, cards move between columns by drag, keyboard and agents (UI SDK's createTransfer).
Example
Ideas
2A field guide to city birds
Pitched by the photo deskNight markets after the rain
Needs a photographerDrafting
1Rooftop gardens, one year on
Outline approvedEditing
0Nothing here
Drag a story here, or press Space on its handle and use the arrows.
Installation
lucide-reactUsage
Give it value and onValueChange to move cards between columns; each BoardColumn value renders its cards.
API reference
Board
Takes Omit< ComponentProps<typeof ScrollArea>, "aria-label" | "aria-labelledby" | "children" | "defaultValue" > &.
BoardColumn
| Prop | Type | Default |
|---|---|---|
titlerequired | string | – |
valueThe column's list in a board that moves cards; its `children` function renders the list's cards. | string | – |
count | number | ReactNode | – |
actions | ReactNode | – |
empty | ReactNode | – |
headingLevel | HeadingLevel | 3 |
toneMarks the column with a dot before the title, a top border and a faint wash in this tone. | Tone | – |
collapsible | boolean | – |
collapsed | boolean | – |
defaultCollapsed | boolean | – |
onCollapsedChange | (collapsed: boolean, details: ChangeDetails<CollapsibleOpenChangeReason>) => void | – |
labels | Partial<BoardColumnLabels> | – |
childrenThe cards, or, with `value` on a board that moves cards, a function from the column's card ids to them. | ReactNode | ((ids: string[]) => ReactNode) | – |
Also takes <li> attributes except title, children, value.
BoardColumnGroup
| Prop | Type | Default |
|---|---|---|
titlerequired | string | – |
count | number | ReactNode | – |
Also takes <section> attributes except title.
BoardNavigationProvider
| Prop | Type | Default |
|---|---|---|
handlerequired | BoardNavigationHandle | – |
childrenrequired | ReactNode | – |
BoardCard
| Prop | Type | Default |
|---|---|---|
idrequired | string | – |
renderrequired | ReactElement | – |
BoardTransfer
| Prop | Type | Default |
|---|---|---|
aria-label | string | – |
aria-labelledby | string | – |
className | string | – |
childrenrequired | ReactNode | – |
Also takes BoardTransferOptions.
BoardList
Takes ComponentProps.
BoardItem
| Prop | Type | Default |
|---|---|---|
variant`card` (default) draws a card around the content; `plain` leaves it to the content, like a `TaskCard`. | keyof typeof cardVariantClassNames | "card" |
Also takes ComponentProps.
BoardItemHandle
| Prop | Type | Default |
|---|---|---|
labelThe card's name; the handle is called `labels.handle(label)`. | string | – |
labels | Partial<TransferLabels> | – |
value | string | – |
Also takes ComponentProps except value.
Other exports
boardColumnLabelsuseBoardListsboardNavigationuseBoardCardStopuseBoardNavigationboardTransfertype BoardItemHandlePropstype BoardItemPropstype BoardColumnLabelstype BoardColumnPropstype BoardColumnGroupPropstype BoardPropstype BoardNavigationOptionstype BoardCardStoptype BoardNavigationHandletype BoardMovetype BoardTransferAutoScrolltype BoardTransferChangeDetailstype BoardTransferOptionstype BoardTransferPropsAccessibility
- A named, horizontally scrolling list of columns; each column is a region named by its title.
- Moving cards, each column's cards are a list named by its title. Space lifts a card, Up and Down place it, Left and Right change columns, Space drops it and Escape puts it back; every step is announced.
- With handle, a card moves by its BoardItemHandle, one tab stop for all of them, so the card's own buttons stay clickable.
Agent actions
Agents get move(id, list, index) on the board's label, and are told the lists and the range when an argument is wrong; agentMoves={false} hides it for a host with its own confirmed action.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.