View as Markdown

API reference: @salmonui/kanban

KanbanColumncomponent

import { KanbanColumn } from '@salmonui/kanban';
function KanbanColumn(_props: KanbanColumnProps): null;

A column declared as an element (<Kanban><KanbanColumn columnKey="todo" header="To do" /></Kanban>). Renders nothing itself: the board reads the props of its direct KanbanColumn children (and fragments), so the columns are in the server HTML without a registration effect.

Props: KanbanColumnProps

KanbanColumn props (14)
NameSignatureDescription
columnKeyoptionalreadonly columnKey?: KanbanKey | undefined;
keysoptionalinheritedkeys?: readonly KanbanKey[];

Several column values shown in one column; moves write the first.

headerinheritedheader: string;

Header text; also the accessible name of the column.

collapsibleoptionalinheritedcollapsible?: boolean;

Shows the collapse toggle (default false).

countoptionalinheritedcount?: boolean;

Shows the card count in the header (default true).

renderHeaderoptionalinheritedrenderHeader?: ((ctx: KanbanColumnContext) => ReactNode);

Replaces the header text content. Pure; the toggle, count and add button stay.

minoptionalinheritedmin?: number;

WIP minimum.

maxoptionalinheritedmax?: number;

WIP maximum.

addButtonoptionalinheritedaddButton?: boolean;

Shows an add button at the end of every cell of the column.

draggableoptionalinheriteddraggable?: boolean;

Cards may be dragged out of this column (default true).

droppableoptionalinheriteddroppable?: boolean;

Cards may be dropped into this column (default true).

allowedTargetsoptionalinheritedallowedTargets?: readonly KanbanKey[];

Columns that cards of this column may move to (default: every droppable column).

hiddenoptionalinheritedhidden?: boolean;

Hides the column.

classNameoptionalinheritedclassName?: string;