To do 2
Write migration guide for v3
DocsAudit focus styles in overlays
A11yIn progress 2
Range mode for Calendar
FeatureToast stacking on mobile
Done 1
Theme export to CSS
FeatureInstallation
$ pnpm dlx shadcn@latest add @synccn/kanbanFirst 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? }] }]
PropTypeDescription
- columnsrequired
KanbanColumn[]Initial columns and cards.
- onChange
(columns: KanbanColumn[]) => voidCalled after cards move.
- className
stringExtra 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
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
- lucide-react for GripVertical, Plus
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
More data
Data TableSorting, search, column visibility, selection and paging.Bar ChartResponsive SVG bars with tooltips and an entrance.Area ChartSmooth area with a crosshair tooltip.SparklineTiny trend line coloured by direction.HeatmapContribution-style calendar of daily counts.Sortable ListDrag to reorder, with Alt+arrow keyboard support.