One card: tag and id, a two line title, then assignee, due date, comments and subtasks.
FreeWeb and MobileMotion
Preview
npx shadcn add @fetaui/kanban-cardPlayground
DesignHAL-142
Redesign the checkout summary for mobile
Default
DesignHAL-142
Redesign the checkout summary for mobile
Hover
DesignHAL-142
Redesign the checkout summary for mobile
Dragging
DesignHAL-142
Redesign the checkout summary for mobile
Done
DesignHAL-142
Redesign the checkout summary for mobile
Icons animation
Done
Motion
Installation
Terminal· bash
npx shadcn add @fetaui/kanban-card
Default
Tag and id, a two line title, then whichever of assignee, due date, comments and subtasks you pass.
DesignHAL-142
Redesign the checkout summary for mobile
Done
Motion
Accessibility
- The title is a heading, and each stat has a full text label.
- Done adds a labelled check and mutes the title, so state is never colour alone.
- handle takes your aria props. The card adds a visible focus ring to it and nothing else.
Motion
- The card fades in over 240 ms, unless appear is false.
- Hover darkens the border over 120 ms.
- Dragging lifts with a 2 degree tilt and a shadow. Lifted adds a 2 px ring with the same tilt. Placeholder dims to 32%.
- With reduced motion, there is no tilt.
Responsive behavior
- Fills its column, up to 358 wide on Mobile.
Performance
- One motion wrapper fades the card in once. Hover is CSS.
Note for AI
Give your coding assistant the Markdown reference instead of screenshots.
- Import KanbanCard from @/components/fetaui/kanban-card. It composes Tag and Avatar from product-kit.
- It has no drag or click behavior. Other props go on the article, so add your own handlers or wrap it in a link. For a board, pass handle to lay a full card button over it, and drive state with lifted, dragging or placeholder from your own drag code.
- state forces the hover or dragging pose for previews. Use done for finished work.
- top and meta replace the first and last rows, and null drops a row. KanbanCardStat and KanbanCardAssignee are exported for those slots. density compact is the dense board look. Kanban renders its cards this way.
Related
Kanban ColumnComponentA 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.KanbanProBlockA board of Kanban Columns you drag Kanban Cards between, in Issues, Tasks and Points styles, with a full keyboard path.ItemComponentA row that shows one thing: media, a title, a description and an optional action.AvatarComponentA person or workspace as an illustrated photo, initials or an icon, with presence, a story ring and overlapping groups.