fetaUI
GitHub

Kanban Card

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-card
Playground
DesignHAL-142

Redesign the checkout summary for mobile

Assigned to Maya ChenDue Oct 304 comments2 of 5 subtasks
Default
DesignHAL-142

Redesign the checkout summary for mobile

Assigned to Maya ChenDue Oct 304 comments2 of 5 subtasks
Hover
DesignHAL-142

Redesign the checkout summary for mobile

Assigned to Maya ChenDue Oct 304 comments2 of 5 subtasks
Dragging
DesignHAL-142

Redesign the checkout summary for mobile

Assigned to Maya ChenDue Oct 304 comments2 of 5 subtasks
Done
DesignHAL-142

Redesign the checkout summary for mobile

Assigned to Maya ChenDue Oct 304 comments2 of 5 subtasks
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

Assigned to Maya ChenDue Oct 304 comments2 of 5 subtasks
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