Components
- Accordion
- Add to Cart
- Animated List
- Carousel
- Collapsible Sidebarnew
- Dynamic Island
- Expandable Cardnew
- Expanding Searchnew
- Filter Grid
- Kanban Board
- Layout Switcher
- Morphing Popover
- Number Flip
- Page Transition
- Product Gallery
- Segmented Control
- Sortable Table
- Stack Navigator
- Status Button
- Step Wizard
- Tabs
- Text Morphnew
- Theme Mode Switch
- Theme Morph Button
- Theme Toggle Button
- Theme Toggle Switch
- Theme Transition
- Toast Stacknew
Todo
3 cardsEmpty state illustrations
DesignMKWrite migration guide
DocsJSFix Safari focus ring
BugAL
In progress
2 cardsKeyboard shortcuts
FeatureRPDark mode tokens
DesignMK
Done
2 cardsBilling settings page
FeatureJSFlaky upload test
BugAL
Press Space or Enter to pick up a card. While it is picked up, use the arrow keys to move it between positions and columns, Space or Enter to drop it, and Escape to cancel. Arrow keys move focus between cards.
Installation
$ pnpm dlx shadcn@latest add @transition-kit/kanban-boardUsage
import {
KanbanBoard,
KanbanCard,
KanbanCardActions,
KanbanColumn,
} from "@/components/transitions/kanban-board";const columns = [
{ id: "todo", title: "Todo" },
{ id: "done", title: "Done" },
];
const [cards, setCards] = useState([
{ id: "1", column: "todo", title: "Write the changelog" },
{ id: "2", column: "done", title: "Ship the release" },
]);
<KanbanBoard columns={columns} cards={cards} onCardsChange={setCards}>
{columns.map((column) => (
<KanbanColumn key={column.id} value={column.id}>
{(card) => (
<KanbanCard>
{card.title}
<KanbanCardActions />
</KanbanCard>
)}
</KanbanColumn>
))}
</KanbanBoard>;API Reference
KanbanBoard
| Prop | Type | Default | Description |
|---|---|---|---|
columns | KanbanColumnData[] | - | Column definitions, where KanbanColumnData is { id: string; title: string }. |
cards | T[] | - | Controlled card list, where T extends KanbanCardData ({ id: string; column: string; title: string }, plus any extra fields). Each card's title is its accessible name and announcement text. |
defaultCards | T[] | [] | Initial cards when uncontrolled. |
onCardsChange | (cards: T[]) => void | - | Called with the updated card list after a move. |
KanbanColumn
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | - | A column id from columns. The column renders its title, the card count and an <ul>. |
children | (card: T) => ReactNode | - | Render function for each card in the column. Return a <KanbanCard> from it. |