readonly
Switches the board to view-only mode. When enabled, the board blocks these interactions:
- dragging cards
- the
+add-card button in the column header (it's hidden) - adding a card by double-clicking a column
- opening the editor or the card popup by clicking a card (or pressing Enter/Space on it)
Collapsing columns still works. readonly doesn't affect the toolbar or the card and column menus. They live outside <Kanban>, so the host app controls them, for example by not rendering a menu wrapper or by gating it with resolver.
To hide card ⋯ buttons, set card={{ menu: !readonly }}. This doesn't affect right-click menus; see Menus on a readonly board.
readonly blocks UI interactions only. Actions dispatched with api.exec() still run.
Usage
readonly?: boolean;
false(default) - full interactivitytrue- built-in board editing is blocked
Example
<Kanban cards={cards} columns={columns} readonly={true} />