# KanbanSwimlanes (@salmonui/kanban)

> The KanbanSwimlanes interface of @salmonui/kanban: Swimlane options.

Canonical: https://salmonui.dev/docs/reference/kanban/KanbanSwimlanes

```ts
import type { KanbanSwimlanes } from '@salmonui/kanban';
```

Entry index: https://salmonui.dev/docs/reference/kanban (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/kanban.md).

## Reference

Kind: interface

```ts
interface KanbanSwimlanes {
    readonly field: string;
    readonly labelField?: string | undefined;
    readonly lanes?: readonly KanbanSwimlaneDef[] | undefined;
    readonly renderHeader?: ((ctx: KanbanSwimlaneContext) => ReactNode) | undefined;
    readonly sort?: 'asc' | 'desc' | ((a: KanbanSwimlaneContext, b: KanbanSwimlaneContext) => number) | undefined;
    readonly showEmpty?: boolean | undefined;
    readonly count?: boolean | undefined;
    readonly unassigned?: boolean | undefined;
    readonly sticky?: boolean | undefined;
    readonly draggable?: boolean | undefined;
}
```

Swimlane options.

Members (10):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field: string;` |  | Card field holding the swimlane key. |
| `labelField` | `readonly labelField?: string \| undefined;` | optional | Card field holding the lane label (default: the key). |
| `lanes` | `readonly lanes?: readonly KanbanSwimlaneDef[] \| undefined;` | optional | Declared lanes: their order and labels; with `showEmpty` they render without cards. |
| `renderHeader` | `readonly renderHeader?: ((ctx: KanbanSwimlaneContext) => ReactNode) \| undefined;` | optional |  |
| `sort` | `readonly sort?: 'asc' \| 'desc' \| ((a: KanbanSwimlaneContext, b: KanbanSwimlaneContext) => number) \| undefined;` | optional | Lane order: by label, or a comparator (default: declared lanes, then first appearance). |
| `showEmpty` | `readonly showEmpty?: boolean \| undefined;` | optional | Renders declared lanes that have no cards (default false). |
| `count` | `readonly count?: boolean \| undefined;` | optional | Shows the card count in the lane header (default true). |
| `unassigned` | `readonly unassigned?: boolean \| undefined;` | optional | Cards without a lane key go to an "Unassigned" lane (default true); false hides them. |
| `sticky` | `readonly sticky?: boolean \| undefined;` | optional | Lane headers stick to the top while the board scrolls. |
| `draggable` | `readonly draggable?: boolean \| undefined;` | optional | Cards may be dragged across lanes (default false). |
