AsterUIDocsv1.0.2

Docs / Component reference

KanbanBoard

Group work by stage. A board makes it possible to see which items are waiting and which have already moved on.

Kanban example

Install

sh
npx @fierst/ui@1.0.2 add kanban

Registry dependencies: theme, icon, badge. Package dependencies: @lucide/icons.

Exports from ./ui/kanban: KanbanCardItem, KanbanBoard.

Download the registry source for kanban 1.0.2.

API contracts

ts
export interface KanbanCardItem {
  id: string;
  columnId: string;
  title: string;
  meta?: string;
  tag?: string;
  tagTone?: BadgeTone;
}

export function* KanbanBoard(
  props: {
    columns: readonly { id: string; title: string }[];
    cards: readonly KanbanCardItem[];
    onMove?: (cardId: string, toColumnId: string) => void;
    class?: string;
  },
  ctx: Ctx,
)