Kanban

@allem-ui/kanban

Drag-and-drop kanban board with columns, cards, labels, and assignees. Zero external drag-and-drop dependencies.

Installation

npm install @allem-ui/kanban

Basic Usage

To Do

2
Design

Design homepage

Write docs

In Progress

1

Build components

A

Done

1

Setup repo

KanbanBoard Props

PropTypeDefaultDescription
columns*KanbanColumnData[]Array of column definitions with items
onCardMove(cardId, fromColumnId, toColumnId, newIndex) => voidCalled when a card is dragged to a new position
classNamestringAdditional CSS classes

KanbanCard Props

PropTypeDefaultDescription
id*stringUnique card identifier
title*stringCard title
descriptionstringCard description text
labels{ text: string; color: string }[]Colored label badges
assigneestringAssignee name (shows initials avatar)
dueDatestringDue date text

KanbanColumn Props

PropTypeDefaultDescription
id*stringUnique column ID
title*stringColumn heading
countnumberItem count badge
colorstringAccent color
onAddCard() => voidShow add card button
onDrop(cardId, targetColumnId, index) => voidDrop handler
classNamestringAdditional CSS classes

KanbanHeader Props

PropTypeDefaultDescription
title*stringHeader text
countnumberCount badge
colorstringAccent color
classNamestringAdditional CSS classes

KanbanAddCard Props

PropTypeDefaultDescription
onAdd(title: string) => voidCalled with new card title
classNamestringAdditional CSS classes