Skip to content
Display

Kanban

Drag-and-drop board with cards that reorder and move across columns.

Import

tsx
import { Kanban } from "@cronus-ui/ui";
bash
npx cronus-ui add kanban

Examples

.cronus

The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.

PortedParity: MatchGeometry 1/1Pixel diff 0 pxLogic 1/1Parity scoreboard
default.cronus
app "audit-fixtures" {
  port 5176
}

style {
  preset aurora
  theme dark
}

component KanbanDefault layout:inline style:kanban {
  aria-label:"Board"
  label "Board"
  text "Todo"
  text "Ship"
  text "Doing"
  text "Review"
}

page "/audit/kanban/default" type:custom {
  use KanbanDefault
}

API Reference

Generated from the component's exported types.

KanbanProps

Extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">

Skip KanbanProps props table
PropTypeDefaultDescription
columns*
KanbanColumn[]—The board's columns and their cards (controlled).
onColumnsChange*
(next: KanbanColumn[]) => void—Called with the next columns after a reorder/move. The consumer owns state.
renderItem
(item: KanbanItem) => ReactNode—Render a card's body. Defaults to the item's title + description in a Card-like tile. The drag handle and tile chrome are always provided.
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.