# KanbanCardContext (@salmonui/kanban)

> The KanbanCardContext interface of @salmonui/kanban: renderCard, getCardProps and tooltip argument.

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

```ts
import type { KanbanCardContext } 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 KanbanCardContext<T> {
    readonly card: T;
    readonly id: KanbanKey;
    readonly columnKey: KanbanKey;
    readonly swimlaneKey: KanbanKey | null;
    readonly index: number;
    readonly selected: boolean;
}
```

`renderCard`, `getCardProps` and tooltip argument.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `card` | `readonly card: T;` |  |  |
| `id` | `readonly id: KanbanKey;` |  |  |
| `columnKey` | `readonly columnKey: KanbanKey;` |  |  |
| `swimlaneKey` | `readonly swimlaneKey: KanbanKey \| null;` |  | `null` without swimlanes or in the unassigned lane. |
| `index` | `readonly index: number;` |  | Position in its cell (0-based). |
| `selected` | `readonly selected: boolean;` |  |  |
