# SortableBoard: a kanban board that works from the keyboard

SortableBoard is the kit's board for work where moving a card is the action: a task's status, the order of steps. Cards move with a pointer, a finger or the keyboard (Space, the arrows, Space), every step is said to a screen reader, and the app can refuse a move, which sends the card home with a shake.

Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/sortable-board/

*Brightpath's task board on Wednesday 2 December 2026: four of its five columns with their real counts, the task open in the side panel ringed and the overdue dates in red; a phone shows the In progress column alone.*

A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/sortable-board/

## What it is for, and what the preview shows

A board where dragging a card changes a record: the status of a task, the stage of a deal, the order of steps. The preview is [Brightpath](https://meadowstack.com/examples/agency-capacity-planning/)'s task board as the demo shows it on Wednesday 2 December 2026 at 10:24, rebuilt from the kit with the demo's own tasks. The counts beside the titles are the real ones: To do 14, In progress 9, In review 6, Done 19. The app has a fifth column, Backlog, to the left of these.

Each card is the demo's: the key and the person, the title on two lines at most, the priority as a `PriorityGlyph`, two labels at most, and the due date, red with "Overdue" once its day has passed on a task that is not done. The ringed card is `selectedId`, the task open in the side panel beside the board; it gets the ring of a focused card and `aria-current`. Below 768px the kit stacks the columns into one, so the narrow preview shows the In progress column alone. The screen around it is the [task board](https://meadowstack.com/screens/task-board/).

## The rules, and where they live

- **The manifest** (`packages/kit/src/components.json`): use it when moving is the action; not when moving changes nothing, where `Board` or a `DataTable` reads better. It replaces "dnd-kit or HTML drag and drop in the app" and "hand-built reordering".
- **The lint** (`eslint.config.js`): an app that imports `@dnd-kit/*` fails with "Use the kit's sortable board and list."
- **The kit's rules** (`.claude/rules/kit.md`): drag and drop only through `SortableBoard` and `SortableList`. Keyboard support and announcements are part of the component, not of the app.
- **AGENTS.md, Look and feel**: Space picks up a card, and an app has no single-character shortcuts.
- **docs/patterns.md, Lists, boards and records**: the card lifts, tilts with the speed of the hand, and its neighbours make room. The component's numbers: a lift to 1.03 over 180ms, a tilt of up to 4 degrees, a 260ms flight into its slot, and no tilt or flight under reduced motion.
- **docs/principles.md**: whatever can be done by drag can also be done with visible controls, so the task's panel keeps its status field for people who do not drag.

## What AI coding tools write instead

Asked for a kanban board, a coding tool installs a drag and drop library or wires the browser's HTML drag and drop into the page, as the manifest's `replaces` names it. Under a mouse it looks done. What goes wrong:

- HTML drag and drop has no keyboard path, so a person who cannot use a mouse cannot move a card at all.
- The new status is written before the server answers, and nothing puts the card back when the server or a rule says no.
- Nothing is said to a screen reader while the card travels.
- Every board in the app gets its own lift, drop and spacing, so two screens drag differently.

The kit's board carries all of it once: Space, the arrows and Space again; announcements such as "Picked up", the column with "position 2 of 9", "Dropped" or "Move cancelled"; and a refusal that flies the card home.

## How to use it

- `columns`: `id`, `title` and `icon` (the status glyph), with an optional `meta` and a `footer` under the cards, such as a link to the full list when a column is capped.
- `items`: the cards per column id, in order; `getId`, and `getLabel` for what a card is called in announcements.
- `renderCard`: only the card's content. The board draws the card, its ring, its lift and the slot it leaves.
- `onMove({ id, from, to, index })`: apply the move optimistically; return `false` to refuse it.
- `canMove(item, from, to)`: the columns a card may enter; the others fade while it is carried.
- `readOnly` for a guest or a closed period (cards open but never move), `isLocked` for one card that opens but never moves, such as a shipped task.
- `onOpen` and `selectedId` for the side panel; `showCounts`, on by default, for the number beside each title.

## Its entry in the manifest

*The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.*

| Manifest field | SortableBoard |
| --- | --- |
| What it is | Drag and drop of cards between columns, and of rows in a list, with the keyboard and a screen reader. |
| Use it for | A board or list where moving is the action (a task's status, the order of steps). |
| Not for | When moving changes nothing (Board, DataTable) |
| It replaces | Dnd-kit or HTML drag and drop in the app; Hand-built reordering |
| Screen types | Workspace; Index; Record |
| Import | `import { SortableBoard, SortableList } from "@meadowstack-studio/kit";` |

Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server.

## Where it runs in the example apps

*The example apps whose code renders a SortableBoard, and the modules it sits in.*

| Example app | Modules that render it |
| --- | --- |
| [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Jobs |
| [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Tasks |
| [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | Roasting |
| [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals, Content, Training |

Read from the demo's source when the site was built: 4 of 9 example apps render <SortableBoard>, in the modules named here as each app's sidebar names them.

## How the demo calls it

*Brightpath's board: a column per status, the tasks grouped by status, the move handed to onMove, and readOnly for people who may only read.*

From `apps/demo/src/modules/tasks/pages/issues.tsx` in the Meadowstack repository:

```tsx
<SortableBoard
  label={tx("Úkoly podle stavu", "Tasks by status")}
  columns={boardStatuses.map((status) => ({
    id: status,
    title: statusMeta[status].label,
    icon: statusMeta[status].icon,
  }))}
  items={Object.fromEntries(boardStatuses.map((status) => [status, grouped[status]]))}
  getId={(issue) => issue.id}
  getLabel={(issue) => `${issue.key} ${issue.title}`}
  readOnly={!editable}
  selectedId={peekIssue?.id}
  onMove={onMove}
  onOpen={openIssue}
  renderCard={(issue) => <IssueCard issue={issue} loaded={data} />}
```

## Questions

### Can a card be moved without a mouse?

Yes. Tab to the card, press Space to pick it up, the arrow keys to move it and Space to drop it; Escape cancels. Each step is announced with the column and the card's position in it.

### How does the app refuse a move?

It returns false from onMove, and the card flies back to where it was with a short shake. With canMove the board goes further and fades the columns a card may not enter while it is being carried.

### Does it work on a phone?

Yes. Below 768px the columns stack into one list, and a card lifts after a 180ms press, so a quick swipe still scrolls the page.

### When is a plain board the better choice?

When moving a card would change nothing. Records grouped by stage for reading are the kit's Board or a DataTable grouped by status, without drag handles that promise an action.

## Related

- [The planning editor](https://meadowstack.com/patterns/planning-editor/) (Patterns)
- [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens)
- [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens)
- [GanttChart: a project schedule with its links and key dates](https://meadowstack.com/components/gantt-chart/) (Components)
- [ResourceTimeline: bookings across resources, hour by hour](https://meadowstack.com/components/resource-timeline/) (Components)
- [TimeGrid: a week of time blocks, moved by drag or keys](https://meadowstack.com/components/time-grid/) (Components)
