Raft Design System

Components · Tasks

TaskBoard

The board view of tasks — one column per status, in status order, with cards that can be dragged to another column to change their status.

StableAlso called Kanban
import { TaskBoard } from "@botiverse/raft-ui";

A TaskBoard shows tasks in one column per status, from Backlog to Closed. Dragging a card to another column changes its status. It is one of the two views of a page of tasks; the other, and the default, is the page's list. When to show which is in Tasks.

task-board/compositions/task-board

Not yet implemented in raft-ui: this example shows the board before 0042, with five columns and no completion control on the cards.

When to use

SituationUse
Tasks by status, with room for five columnsTaskBoard
The default view of a page of tasksIts list of rows (Tasks)
Tasks by status in one columnTaskList
One taskTaskCard

Anatomy

  • TaskBoardRoot: the row of columns. Required.
  • TaskBoardColumn: one status. A collapsible section. Required, one per status.
    • TaskBoardColumnTrigger: the column heading, which collapses the column.
      • TaskBoardColumnHeading: TaskBoardColumnBadge (the status pixel and name) and TaskBoardColumnCount.
      • TaskBoardColumnChevron: the arrow that shows whether the column is open, right while it is collapsed and down while it is open. Always shown, in foreground-hint at rest: a collapsed column shows only its heading, and with no arrow "Closed 2" over an empty space reads as two tasks that failed to load (Kirby, 2026-11-10, #wg-task-v2:8a7ae237). It draws ChevronDown when given no children.
    • TaskBoardColumnPanel and TaskBoardColumnItems: the cards.
    • TaskBoardColumnEmpty: what an empty column says, with three texts: TaskBoardColumnEmptyIdle normally, TaskBoardColumnEmptyAllowed while a card can be dropped there, TaskBoardColumnEmptyBlocked while it can't.

Drag and drop comes from the TaskDnd parts (TaskDndProvider, TaskDropZone, TaskDraggable), which the board composition wires in.

States

StateLook
Empty columnA dashed line-seam box with one line of text in foreground-hint
A card can be droppedThe empty box hides and the drop placeholder shows; a collapsed column gets a dashed line-strong outline
A card is over a columnWhere its cards are drop targets, the column keeps its fill; only the drop placeholder marks where the card lands, so one signal says where, not two
A card is over a sorted columnThe whole column takes fill-subtle, with no placeholder between its cards: dropped, the card goes where the sort puts it, so the column is the place (dragInto on its TaskDropZone, Where it will land)
A card can't be droppedNo fill; the empty box says why, in foreground-muted
task-board/compositions/task-board-empty-columns

Behavior

  • Order the columns Backlog, Todo, In progress, Done, Closed, and start only Closed collapsed (Tasks).
  • Don't refuse a drop because of the status a card has or would get: any status can be set from any status (Tasks). A column refuses a card only for a reason outside the statuses, such as a task the person may not change.
  • Switch between the list and the board with List / Board near the end of the page's toolbar (Tasks), and remember the person's choice.
  • Scroll the whole board in one viewport, both ways. Columns keep their width and never scroll on their own.
  • Mount only the visible cards of a tall column with a virtualizer of your own that reads the board's scroll position, as below.
task-board/compositions/task-board-virtualization

Content

  • Write the empty text the same way as an empty group in a list (TaskList).
  • While a card is dragged over an empty column, name the status it would get, or, when the column refuses it, why ("You can't change this task's status").

Accessibility

  • Each column is a Base UI Collapsible rendered as a section; its trigger is a button with aria-expanded.
  • Give each column an accessible name: the status name in the trigger, or aria-label on the section.
  • Cards can be moved with the keyboard: Space picks a card up, Left and Right move it between columns (Up and Down move it within a column only where the column is in the person's own order), Space drops it and Escape puts it back. Enter opens the card (Drag and drop).
  • Announce each step by name: "Picked up Task #25. Over Todo." "Dropped Task #25 in In progress." Pass the card's and the status's names to TaskDndProvider's describe; the board composition shows how. The board doesn't announce on its own, and without describe nothing is announced.

Rules

  • Count the cards in every column heading, in Space Mono.

API

TaskBoardColumn

PropTypeDefault
defaultOpenWhether the collapsible panel is initially open.booleanfalse
disabledWhether the component should ignore user interaction.booleanfalse
onOpenChangeEvent handler called when the panel is opened or closed.(open: boolean, eventDetails: CollapsibleRootChangeEventDetails) => void
openWhether the collapsible panel is currently open.boolean
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

TaskBoardColumnBadge

PropTypeDefault
status (required)TaskStatusId
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

TaskBoardColumnChevron, TaskBoardColumnCount, TaskBoardColumnEmpty, TaskBoardColumnEmptyAllowed, TaskBoardColumnEmptyBlocked, TaskBoardColumnEmptyIdle, TaskBoardColumnHeading, TaskBoardColumnItems

The arrow that shows whether the column is open: right while it is collapsed, down while it is open. It draws a `ChevronDown` when given no children, so a column heading always has it: a collapsed column shows only its heading, and without the arrow "Closed 2" over an empty space reads as two tasks that failed to load.
PropTypeDefault
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

TaskBoardColumnPanel

PropTypeDefault
hiddenUntilFoundAllows the browser's built-in page search to find and expand the panel contents.booleanfalse
keepMountedWhether to keep the element in the DOM while the panel is hidden. This prop is ignored when `hiddenUntilFound` is used.booleanfalse
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

TaskBoardColumnTrigger

PropTypeDefault
nativeButtonWhether the component renders a native `<button>` element when replacing it via the `render` prop. Set to `false` if the rendered element is not a button (for example, `<div>`).booleantrue
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

TaskBoardRoot

PropTypeDefault
renderAllows you to replace the component's HTML element with a different tag, or compose it with another component.ReactElement | ((props, state) => ReactElement)

Also takes the attributes of its element.

Changes

  • 0.84.0 · FixedTaskBoard: TaskBoardColumnChevron draws a ChevronDown when given no children, so a column heading always shows whether the column is open. slock passed it empty, so no column had the arrow and a collapsed Closed column read as "Closed 2" over nothing.