For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
Shadcn Labs/

Kanban Board

Drag cards between columns. The card glides into place while its neighbours make room and the column counts roll. A React component built on View Transitions, installed with the shadcn CLI.

Todo

3 cards
  • Empty state illustrations

    Design
    MK
  • Write migration guide

    Docs
    JS
  • Fix Safari focus ring

    Bug
    AL

In progress

2 cards
  • Keyboard shortcuts

    Feature
    RP
  • Dark mode tokens

    Design
    MK

Done

2 cards
  • Billing settings page

    Feature
    JS
  • Flaky upload test

    Bug
    AL

Installation

$ pnpm dlx shadcn@latest add @transition-kit/kanban-board

Usage

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

PropTypeDefaultDescription
columnsKanbanColumnData[]-Column definitions, where KanbanColumnData is { id: string; title: string }.
cardsT[]-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.
defaultCardsT[][]Initial cards when uncontrolled.
onCardsChange(cards: T[]) => void-Called with the updated card list after a move.

KanbanColumn

PropTypeDefaultDescription
valuestring-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.