Board of columns and cards: the card lifts and leans in the hand, its slot travels ahead of it and it lands with a put-down squash.
DragDrag
Sprint 18 · ends Oct 31
Press Space or Enter to pick up the card. Arrow keys move it between positions and columns, Space drops it, Escape cancels.
kanban-board, lively
Use it for work that moves through stages: tickets in a release, a sales pipeline, candidates in a
hiring loop, a content calendar. Pressing a card sinks it; past 4 px it lifts into a layer above the
page, a little larger, with a firmer neutral rim and a primary-tinted shadow, and leans toward where the
hand is going. Its place in the list becomes the slot, a muted tile of the card's exact size, which
travels between cards and columns ahead of the hand while the siblings make room. On release the card
flies into the slot, squashes onto the column and both column counters roll. A column at its work in
progress limit refuses: no slot, its count turns destructive and the card flies home. For ordered
lists with a single column use a sortable table; for status alone use the status badge.
pnpm dlx shadcn@latest add @motionkit-pro/kanban-boardnpx shadcn@latest add @motionkit-pro/kanban-boardyarn dlx shadcn@latest add @motionkit-pro/kanban-boardbunx --bun shadcn@latest add @motionkit-pro/kanban-boardRequires a Signature license and the @motionkit-pro registry with your token. See Installation.
import { KanbanBoard, type KanbanColumnData } from "@/components/ui/kanban-board"
const columns: KanbanColumnData[] = [
{
id: "todo",
title: "To do",
cards: [
{
id: "audit-log",
title: "Audit log filters",
tags: [{ label: "Feature", tone: "info" }],
assignee: "Mara Lindqvist",
due: "Oct 24",
},
],
},
{ id: "progress", title: "In progress", limit: 3, cards: [] },
{ id: "done", title: "Done", cards: [] },
]
export function Release() {
const [board, setBoard] = useState(columns)
return (
<KanbanBoard
label="Release 4.3"
columns={board}
onMove={(move) => {
setBoard(move.columns)
// persist move.cardId, move.to, move.index
}}
/>
)
}Uncontrolled boards take defaultColumns. renderCard replaces the card body while keeping the drag
shell (surface, lift, slot and put-down). actionsRef exposes moveCard(cardId, to, index?), which
plays the whole trip for moves from a menu or a shortcut. preset picks the layout (board,
swimlanes with lanes, compact with a rolling sum of value per column) and temperament only
the intensity of the motion: the board looks the same in all three.
Prop
Type
Also accepts all props of Omit<ComponentProps<"div">, "children">.
Rows cross the columns; the slot travels in both axes and the row headers stay on the left while the board scrolls (on a narrow board they fold into a band above each row, so the snapped column stays whole). "Interview" has a limit of 2 and "Offer" is locked.
DragDrag
Q4 roles · 7 candidates
Press Space or Enter to pick up the card. Arrow keys move it between positions and columns, Space drops it, Escape cancels.
kanban-board, lively
One-line cards in 220 px columns; each header sums its deals and the sums roll when a deal moves.
DragDrag
Pipeline · this quarter
Press Space or Enter to pick up the card. Arrow keys move it between positions and columns, Space drops it, Escape cancels.
kanban-board, lively
KanbanBoard (data-slot="kanban-board"): the root group, the live region, the horizontal snap
scroller and the portal layer of the lifted card.Roll, optional limit, add button) and a role="list"
labelled with its count.KanbanCard (data-slot="kanban-card"): a <button> with title, tags (StatusBadge), due date
and a 20 px assignee ball. While dragged it is the slot (data-state="slot") or, with the
keyboard, the lifted card itself (data-state="lifted").Cards are buttons with aria-roledescription="draggable card" and instructions linked through
aria-describedby. Every pick-up, move, refusal and drop is announced in an aria-live="assertive"
region ("Audit log filters picked up", "Moved to In progress, position 2 of 3", "In progress is
full, limit 3", "Dropped"). Columns are lists whose label carries the count; assignee initials come
with "Assigned to …" for screen readers. The lifted copy is aria-hidden; the real card keeps focus
and its ring-[3px] ring-ring/50 focus ring during a keyboard drag. Add buttons are 28 px. Text is
foreground or muted-foreground on card and muted, AA in both themes.
| Keys | Action |
|---|---|
| Tab | Moves between cards and add buttons |
| Space / Enter | Picks up the focused card (it lifts in place); drops it again |
| ArrowUp / ArrowDown | Moves the slot up or down in the column (into the next lane with swimlanes) |
| ArrowLeft / ArrowRight | Moves the card to the previous or next column; a full or locked column refuses |
| Escape | Cancels the drag: the card goes back home (pointer drags too) |
No lift, lean or put-down squash. The card follows the pointer 1:1 with its shadow, the slot travels and the counters change with a short crossfade, and on release the copy fades out over the card, which is already in its place. Nothing disappears.
Nothing runs at rest. During a drag only transform and opacity change: the copy's position,
scale and lean are motion values, siblings reflow with Motion's layout (on the calm spring past 12
cards) and the edge autoscroll frame loop runs only while a card is in the hand. Hit testing reads
layout offsets, not animated boxes. On touch a card lifts after a 300 ms hold, so a swipe still
scrolls the board and the page. motion is the only npm dependency.
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Not measured yet · budget 15.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom, motion.
drag, press, a value change, entering the viewport
No lift, lean or put-down: the card follows the pointer 1:1 with its shadow, the slot and the counters crossfade and the copy fades out over the card on drop.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)