Skip to content
synccn

Kanban

Drag cards between columns.

To do 2

Write migration guide for v3

Docs

Audit focus styles in overlays

A11y

In progress 2

Range mode for Calendar

Feature

Toast stacking on mobile

Done 1

Theme export to CSS

Feature

Installation

$ pnpm dlx shadcn@latest add @synccn/kanban

First time in this project? Connect synccn with one command.

Usage

import { Kanban } from "@/components/ui/kanban";<Kanban columns={columns} />

API reference

Generated from the component's TypeScript types, so it always matches the code.

Kanban

Drag-and-drop board (native HTML5 drag events). columns: [{ id, title, cards: [{ id, title, tag? }] }]

  • columnsrequired
    KanbanColumn[]

    Initial columns and cards.

  • onChange
    (columns: KanbanColumn[]) => void

    Called after cards move.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

  • Dragging uses native HTML drag and drop, which isn't keyboard accessible. Offer another way to move cards (for example a Move to menu) if keyboard users need it.

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-label