A 4% ink tray with a status dot, title and count, holding Kanban Cards. It can open a drop slot, show an empty hint, or collapse to its header.
FreeWeb and MobileMotion
Preview
npx shadcn add @fetaui/kanban-columnPlayground
In progress
3 cardsDesignHAL-142
Redesign the checkout summary for mobile
BugHAL-139
Coupon field loses focus on iOS
CopyHAL-131
Rewrite the empty states
Default
In progress
3 cardsDesignHAL-142
Redesign the checkout summary for mobile
BugHAL-139
Coupon field loses focus on iOS
CopyHAL-131
Rewrite the empty states
Drop target
In progress
3 cardsDesignHAL-142
Redesign the checkout summary for mobile
Drop to move here
BugHAL-139
Coupon field loses focus on iOS
CopyHAL-131
Rewrite the empty states
Empty
Blocked
0 cardsNothing blocked
Drag a card here to flag it
Collapsed
In progress
3 cardsIcons animation
Drop target
Motion
Installation
Terminal· bash
npx shadcn add @fetaui/kanban-column
Accessibility
- The column is a section named by its title.
- With list, the cards form a list named by the title, so each child should be a list item.
- Collapse lives in the column menu, and Expand is a labelled button with an expanded state.
- The count reads as a number of cards.
Motion
- The column fades and rises 8 over 400 ms, unless appear is false.
- The drop slot fades in over 120 ms.
- With reduced motion, only state changes remain.
Responsive behavior
- 288 wide on Web and full width on Mobile.
Performance
- A collapsed column unmounts its cards and keeps only the header.
- The column and the drop slot each animate once, with the slot fading in over 120 ms.
Note for AI
Give your coding assistant the Markdown reference instead of screenshots.
- Import KanbanColumn from @/components/fetaui/kanban-column. It composes Button, Icon Button and Dropdown Menu, and takes Kanban Cards as children.
- It has no drag. Set dropIndex and over yourself from your drag code, or use Kanban for a working board. data-* props land on the section, so drag code can find it.
- count is yours and the empty state keys off it: it shows when count is 0 and dropIndex is unset.
- Rows in menu are added after Collapse, and menu={false} drops the menu. addPlacement picks which Add buttons show, icon replaces the status dot, and list makes the cards a named list. Use collapsed with onCollapsedChange to control it.
Related
Kanban CardComponentOne card: tag and id, a two line title, then assignee, due date, comments and subtasks.KanbanProBlockA board of Kanban Columns you drag Kanban Cards between, in Issues, Tasks and Points styles, with a full keyboard path.EmptyComponentSays what is missing and offers the one next step. Eight kinds, from a drop area to a 404.Dropdown MenuComponentA list of actions behind a button, with shortcuts, toggles, submenus and a red destructive action at the end.