Keep the board in state, and render a column per entry.
task-board.tsx
Kanban
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| value | KanbanValue | — | The board: the columns in order, each with its card ids (controlled). |
| default | KanbanValue | EMPTY_BOARD | The first board when the Kanban owns the value (uncontrolled). |
| on | — | Called with each new board, to keep a controlled value in step: live during a drag when a card enters another column (React then moves the card, see Kanban), at the drop, after a Move to, and with the start board when a drag is canceled. | |
| on | — | Called once per finished move (a drop, a Move to, a Move left), from where the item started to where it ended. Save to a server here, not in onValueChange. Not called for a cancel or a drop in the same place. | |
| selection | readonly string[] | — | The selected card ids (controlled). Cmd or Ctrl + click or X toggles a card, Shift + click takes a range in a column, a plain click or Escape clears. Dragging a selected card moves every selected card; the Move to menu of a selected card moves them all too. |
| default | readonly string[] | EMPTY_SELECTION | The first selection when the Kanban owns it (uncontrolled). |
| on | — | Called with each new selection, in board order. | |
| variant | "lane""plain" | "lane" | lane (default): each column on a soft lane. plain: no column fill. |
| labels | Partial<KanbanLabels> | — | The words of the board (the empty column, the buttons), merged over KANBAN_LABELS. |
| driver | — | Drives a drag from code (DragDriver, a card id as the item): a staged scene, a tour, or a test lifts a card, carries it, and drops it through the same drag as a pointer, with the lift, the tilt, the move across columns, the drop flight, and the landed ring. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanColumnList
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanColumn
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | The column id: the id of one column in the board value. |
| label | string | id | The name shown in the Move to menu. Default: the id. |
| icon | ReactNode | — | The mark of the column in the Move to menu (a Status Icon). |
| collapsed | boolean | — | The column folds to a 44px strip (controlled). A collapsed column still takes a drop: the cards go to its end, and its count rolls. |
| default | boolean | false | |
| on | — | ||
| disabled | boolean | false | The column cannot be dragged. Its cards still move. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanColumnHeader
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanColumnTitle
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | A mark (a Status Icon, 14px) and the KanbanColumnName. Loose text among the children is the name: the title puts it in a KanbanColumnName for you (wrapLooseText). |
| count | boolean | true | Show the card count (with the limit, as 3/4). Default true. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanColumnName
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
KanbanColumnSummary
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | — | The total of the column: points, money, hours. Count it from the column's cards. |
| format | NumberFormatOptions | — | The Intl.NumberFormat options of the number (currency, compact, fraction digits). |
| locales | LocalesArgument | — | The locale of the number. Default: the locale of the browser. |
| unit | ReactNode | — | A short unit after the number, as "pts". |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
KanbanColumnActions
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanColumnAdd
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| glass | "clear""dark""light" | — | |||||
| rounded | "default""full" | — | |||||
| size | "default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs" | — | |||||
| variant | "dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary" | — | |||||
| class | string | — | |||||
| busy | boolean | — | The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading. | ||||
| spinner | "center""start" | — | center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label. | ||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||
KanbanColumnCollapse
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| glass | "clear""dark""light" | — | |||||
| rounded | "default""full" | — | |||||
| size | "default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs" | — | |||||
| variant | "dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary" | — | |||||
| class | string | — | |||||
| busy | boolean | — | The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading. | ||||
| spinner | "center""start" | — | center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label. | ||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||
KanbanColumnContent
<ul>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <ul> attributes | — | Every other attribute goes to the <ul>, with a ref. |
KanbanColumnEmpty
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanColumnEmptyTitle
<p>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <p> attributes | — | Every other attribute goes to the <p>, with a ref. |
KanbanColumnEmptyDescription
<p>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <p> attributes | — | Every other attribute goes to the <p>, with a ref. |
KanbanCard
<li>| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | (readonly string[] & string) | — | The card id: one id in its column's cards. |
| label | string | — | The name read on focus. Default: the id. |
| disabled | boolean | — | The card cannot be dragged (locked). It stays focusable. |
| ...props | <li> attributes | — | Every other attribute goes to the <li>, with a ref. |
KanbanCardHandle
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanCardCover
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | — | The picture address. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanCardLabel
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | — | The label color: a data color (any CSS color, as the label colors of an app). It tints the label at 14% and fills the 6px dot; the text stays foreground, readable on every hue. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
KanbanCardMoveMenu
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The label of the submenu trigger. Default: "Move to". |
KanbanCardSkeleton
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| lines | 12 | 2 | The number of text lines under the id, 1 or 2. Default 2. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
KanbanAddCard
<div>KanbanAddColumn
<div>| Space | Lifts the focused card, and drops it. |
|---|---|
| Left ArroworRight ArroworUp ArroworDown Arrow | Moves the lifted card. |
| Esc | Cancels the move, or clears the selection. |
| X | Adds the focused card to the selection. |
- Sortable ListPick Sortable List to put one list in order, with no columns.
- Status IconA small icon for the status of a task or an issue, from Backlog to Done. In progress shows a pie of the work done, and a change of status animates.
- Data TableShows a list of records that people can search, filter, sort, select, and page through. It has a loading, empty, and error state of its own.
Built with
Installs with Kanban
- Components
- Button,Image,Input Group,Kbd,Menu,Rolling Number,Skeleton,Textarea



