Power-User Systems

Kanban

A kanban board with drag and drop. Drag a card within a column or over to another one, and the other cards slide out of the way. Work-in-progress columns have a limit. When one is full, the board warns you or keeps the card out. Columns fold down to a narrow rail. With a keyboard, press Space to pick up a card, move it with the arrow keys, and press Space again to drop it.

Install

bun add motion clsx tailwind-merge

Then copy 3 files into your project:

  • components/registry/kanban/kanban.tsx
  • hooks/use-animation-loop.ts
  • lib/utils.ts

Props

PropTypeDefaultDescription
wipLimitnumber3The most cards a work-in-progress column should hold. 0 means no limit.
wipMode"warn" | "block""warn"What happens past the limit. Warn lets the card in and flags the column. Block keeps it out.
stiffnessnumber520How hard cards spring into their new places.
dampingnumber40How fast that spring settles.
liftnumber1.04How much a picked-up card grows.
tiltnumber4How far a carried card leans into the drag.
collapsiblebooleantrueLet columns fold down to a narrow rail.
accentColorstring (hex)"#a855f7"The focus ring, the outline on a lifted card, and the drop slot.

What It Demonstrates

Drag to reorder
Dragging items in a list to rearrange them, while the others shift to make room.
Drag
Moving an element by grabbing it, often with momentum when released.
Layout animation
When an element's size or position changes, it animates to the new spot instead of snapping.
Shared element transition
An element travels and transforms from one position into another, like a thumbnail expanding into a card.
Spring
Motion driven by physics (tension, mass, damping) rather than a set duration.
Accordion / Collapse
A section smoothly expands and collapses its height to show or hide content.

Related Components

Appears In