Skip to content

Kanban

Free

A board of columns where people drag cards from one stage to the next, by mouse, touch, or keys. A Move to menu does the same with no drag.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Keep the board in state, and render a column per entry.

task-board.tsx

Kanban

<div>
PropTypeDefaultDescription
valueKanbanValue—The board: the columns in order, each with its card ids (controlled).
defaultValueKanbanValueEMPTY_BOARDThe first board when the Kanban owns the value (uncontrolled).
onValueChange—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.
onMove—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.
selectionreadonly 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.
defaultSelectionreadonly string[]EMPTY_SELECTIONThe first selection when the Kanban owns it (uncontrolled).
onSelectionChange—Called with each new selection, in board order.
variant"lane""plain""lane"lane (default): each column on a soft lane. plain: no column fill.
labelsPartial<KanbanLabels>—The words of the board (the empty column, the buttons), merged over KANBAN_LABELS.
driverRef—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>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

KanbanColumn

<div>
PropTypeDefaultDescription
valueRequiredstring—The column id: the id of one column in the board value.
labelstringidThe name shown in the Move to menu. Default: the id.
iconReactNode—The mark of the column in the Move to menu (a Status Icon).
collapsedboolean—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.
defaultCollapsedbooleanfalse
onCollapsedChange—
disabledbooleanfalseThe column cannot be dragged. Its cards still move.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

KanbanColumnHeader

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

KanbanColumnTitle

<div>
PropTypeDefaultDescription
childrenRequiredReactNode—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).
countbooleantrueShow 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>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

KanbanColumnSummary

<span>
PropTypeDefaultDescription
valueRequirednumber—The total of the column: points, money, hours. Count it from the column's cards.
formatNumberFormatOptions—The Intl.NumberFormat options of the number (currency, compact, fraction digits).
localesLocalesArgument—The locale of the number. Default: the locale of the browser.
unitReactNode—A short unit after the number, as "pts".
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

KanbanColumnActions

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

KanbanColumnAdd

<button>
PropTypeDefaultDescription
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"—
classNamestring—
busyboolean—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.
spinnerPlacement"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
focusableWhenDisabledbooleanfalseWhether 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>
PropTypeDefaultDescription
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"—
classNamestring—
busyboolean—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.
spinnerPlacement"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
focusableWhenDisabledbooleanfalseWhether 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>
PropTypeDefaultDescription
...props<ul> attributes—Every other attribute goes to the <ul>, with a ref.

KanbanColumnEmpty

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

KanbanColumnEmptyTitle

<p>
PropTypeDefaultDescription
...props<p> attributes—Every other attribute goes to the <p>, with a ref.

KanbanColumnEmptyDescription

<p>
PropTypeDefaultDescription
...props<p> attributes—Every other attribute goes to the <p>, with a ref.

KanbanCard

<li>
PropTypeDefaultDescription
valueRequiredstring | (readonly string[] & string)—The card id: one id in its column's cards.
labelstring—The name read on focus. Default: the id.
disabledboolean—The card cannot be dragged (locked). It stays focusable.
...props<li> attributes—Every other attribute goes to the <li>, with a ref.

KanbanCardHandle

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

KanbanCardCover

<div>
PropTypeDefaultDescription
srcRequiredstring—The picture address.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

KanbanCardLabel

<span>
PropTypeDefaultDescription
colorRequiredstring—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

PropTypeDefaultDescription
childrenReactNode—The label of the submenu trigger. Default: "Move to".

KanbanCardSkeleton

<div>
PropTypeDefaultDescription
lines122The 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>
PropTypeDefaultDescription
classNamestring—
onAddRequired—Called with the trimmed title when the person adds a card. Make the card and its id here.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

KanbanAddColumn

<div>
PropTypeDefaultDescription
classNamestring—
onAddRequired—Called with the trimmed name. Add the column to the value here.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when the stage of a card is the main fact.
  • Use limit on a column for a WIP limit.
  • Use selection to move many cards at once.
SpaceLifts the focused card, and drops it.
Left ArroworRight ArroworUp ArroworDown ArrowMoves the lifted card.
EscCancels the move, or clears the selection.
XAdds the focused card to the selection.

Every move is also in the Move to menu of a card, with no drag.

A locked card (disabled) cannot move, and it keeps focus.

KanbanCard reads its label on focus.

Lift
follow · spring, stiffness 500, damping 32 · the held card grows to 103% and tilts with the pointer speed
Drop
sheet · 300ms · ease-panel (0.2, 0.4, 0.2, 1) · the card settles back to its size in its new place
Move
panel · 260ms · ease-panel · cards close the gap after a Move to, an add, or a delete
Landed
fade-exit · the ring of a card that just landed holds for 600ms, then fades
  1. AddedKanban, with Button, Image, Input Group, Kbd, Menu, Rolling Number, Skeleton, Textarea.
Open the release