Kanban board

A React component in Beamline's Data & tables category.

Work as cards in columns by stage: drag a card (or lift it with Space and walk it with the arrows) to another column or place, the cards around it make room as it travels; columns keep work-in-progress limits that warn or refuse, fold into a narrow rail, and swipe one by one in a narrow room.

Use it for

  • Work items that move through stages: issues in a sprint, deals in a pipeline, candidates in hiring, content in review.
  • A team needs to see where work piles up (work-in-progress limits per column) and move items by hand.

Not for

Anatomy

  • root (a size container; scrolls columns sideways when they outgrow it)
  • column: header (icon, title, count, limit “3 / 5”, over-limit word and glyph, fold and add buttons), list of cards, empty drop area, footer Add card
  • folded column: a narrow rail with the title written down it and the count
  • card: key, priority glyph, title, labels, due date, sub-task progress, estimate, assignees (or your own renderCard)
  • drop slot (where the dragged card will land) and the lifted card that follows the pointer
  • live region announcing lift, every move and the drop

Variants

  • 0: density: compact · default · comfortable (comfortable shows the description)
  • 1: limitMode: warn (a column over its limit says so) · strict (a full column refuses a card)
  • 2: renderCard for a card of your own; the board keeps drag, keyboard and motion

States

  • loading (skeleton cards in each column)
  • empty column (a dashed area that says what goes there; “Drop here” while dragging)
  • dragging (slot open where the card would land; others make room)
  • lifted by keyboard (the card itself moves; a ring and raised paint mark it)
  • refused (the target column says why: its limit, or the reason canMove returned)
  • over limit (warning tone, glyph and the words “Over limit”)
  • at limit (count reads 5 / 5 in ink)
  • folded column
  • estimate not set (hatched, never 0)

Keyboard

  • Tab reaches the board's cards as one stop (the last one used), then each column's buttons
  • ↑ ↓ move between cards in a column; ← → to the neighbouring column's card at the same height
  • Home / End: first / last card of the column
  • Space lifts the focused card; then ↑ ↓ move it within the column, ← → to the next column; Space or Enter drops it; Escape puts it back
  • Enter opens the card (onCardOpen) when not lifted
  • Folding or opening a column keeps focus on its replacement control; folded cards cannot take the board’s single card tab stop.

Motion

A card under the pointer lifts at once (raised paint, a slight tilt and swell) and follows the finger; the slot it would land in opens where it is and the cards around it slide to make room (useFlip). On release the card flies into its slot on the held spring (the one sanctioned bounce: an object the hand let go of). A keyboard-lifted card itself slides from place to place. Cards added or moved by someone else slide or grow in; removed ones leave a fading ghost. A column folds into its rail and opens again by its width. Under reduced motion every change is placed at once; nothing runs at rest.

Props

PropTypeDefaultDescription
columns (required)KanbanColumn[]—Number of columns in the display. Required.
value / defaultValue / onValueChangeKanbanCard[] / (cards, move) => void—value: Controlled board cards, including their columns and order; omit to use defaultValue. defaultValue: Initial board cards, including their columns and order when uncontrolled. Defaults to an empty list. onValueChange: Reports board cards, including their columns and order after an edit; no callback by default.
canMove(card, to: string, index: number) => true | string—Return a reason to refuse a move ("Needs a reviewer first"): the target column says it and the card goes back.
limitMode"warn" | "strict"—warn (default): a column over its limit says so. strict: a full column refuses another card.
onCardOpen(card) => void—Opens the chosen board card; no handler by default.
onAddCard(columnId) => void—Shows "Add card" at the end of every column.
collapsed / defaultCollapsed / onCollapsedChangestring[]—collapsed: Controlled ids of collapsed board columns; omit to use defaultCollapsed. defaultCollapsed: Initial collapsed columns when uncontrolled. Defaults to an empty list. onCollapsedChange: Reports collapsed columns after a change; no callback by default.
renderCard(card, state: { lifted }) => ReactNode—Your own card body; the board keeps the frame, the drag and the keyboard.
density"compact" | "default" | "comfortable"—Spacing density for rows. Defaults to "default".
loadingboolean—Shows the loading state while data or an operation is pending. Defaults to false.
emptyLabelstring—What an empty column says. Default "No cards".
aria-label (required)string—The board's name: "Sprint 42".
className / classNames / style / refstring / KanbanClassNames / CSSProperties / Ref<HTMLDivElement>—className: Classes on the documented visual root; no override by default. classNames: Classes for the named visual parts; no part overrides by default. style: Inline styles on the documented visual root; no inline overrides by default. ref: Receives the documented root element; no ref by default.
valueKanbanCard[]—Controlled board cards, including their columns and order; omit to use defaultValue.
defaultValueKanbanCard[]—Initial board cards, including their columns and order when uncontrolled. Defaults to an empty list.
onValueChange((cards: KanbanCard[], move: KanbanMove) => void)—Reports board cards, including their columns and order after an edit; no callback by default.
collapsedstring[]—Controlled ids of collapsed board columns; omit to use defaultCollapsed.
defaultCollapsedstring[]—Initial collapsed columns when uncontrolled. Defaults to an empty list.
onCollapsedChange((collapsed: string[]) => void)—Reports collapsed columns after a change; no callback by default.
classNamestring—Classes on the documented visual root; no override by default.
classNamesPartial<Record<"root" | "header" | "footer" | "rail" | "slot" | "list" | "card" | "colu…—Classes for the named visual parts; no part overrides by default.
styleCSSProperties—Inline styles on the documented visual root; no inline overrides by default.
refRef<HTMLDivElement>—Receives the documented root element; no ref by default.

Built from

Used in

Dependencies

motion, lucide-react

Import

import { KanbanBoard } from "@beamline/kanban-board";

Get it

Kanban board is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent

More in Data & tables

  • Living table: A table that shows as much as fits on both axes: width decides which columns show (the rest ride in the name line, moving there rather than vanishing)…
  • Availability layers: A week of bookable start times whose closed times explain themselves: every availability rule (hours, time off, bookings, buffers, rooms, lead time…
  • Capacity terrain: A schedule that stands on a terrain of capacity: under each station's lane of jobs, every day's load rises to its capacity line and an overload is a…
  • Domino move: A room board where one move shows its chain: drag a booking (or pick it and aim it with the keys) onto a taken room and the bookings it would push appear…
  • Match board: Month-end matching as one picture: bank lines and books entries side by side with threads between them — solid for matched, dashed with the host's reason…
  • Split anything: One splitter for money, quantities and time: a bar of the whole shows every target's part and what is not split yet; items are dragged onto targets…
  • Approval route: A policy you can read by trying it: an amount on a log scale with the thresholds as marks (the arrows stop just under, at and just over each), the…
  • Proposal twin: A proposal edited beside the client's exact page, the two linked both ways: a field in focus lights its twin on the page, scrolls it into view and joins…
  • Quantity river: The life of one order line's quantity: at rest a bar of its real split ("5 delivered · 1 back in stock · 1 damaged · 5 cancelled"), unfolding into a…
  • Stock horizon: Projected stock per item over the coming weeks: a strip of weeks with the safety line, weeks under safety in warn and short in danger, every dip said in…
  • Ageing queue: Tickets that visibly age: each ticket's ring fills toward its own service target and steps from on time to late to very late, the words say when it is…
  • Import lens: A messy import made fixable by kind: rows stream through the checks once with live counts; problems gather into groups that say what is wrong in words…
  • Duplicate guard: A new record that watches for the one that already exists: as you type, the likely duplicates slide in beside the form with the fields that match lit and…
  • Scan flow: A pick list that takes scans: each scan flies from the scan field into its row and fills that row's quantity ring, and the prompt moves to the next bin…
  • Pack planner: The packing bench: the order's items sit in box outlines drawn to scale, each box filling to its padding line, weighing against its limit and naming the…
  • Provenance lens: Hold Alt (or press Lens) over any number on the page and see what makes it: hairline threads draw from the number to the rows, cards and documents on…
  • Record time machine: The record itself, rewound in place: a slim track of every change (a tick per change in its person's colour, hollow for automation, named moments as…
  • Tension timeline: A plan where slack is something you see: every dependency is a string from one task's end to the next one's start, sagging with the days it has to spare…
  • Replay bar: Rewind for anything live: pause a stream, scrub back to the moment you missed (markers for the ones that matter), step one update at a time, replay at a…
  • Event calendar: A schedule of events by day, week or month: events that overlap sit side by side, drag one to another time or day or pull its bottom edge to change its…
  • Data grid: Virtualised local or server-driven grid: stable row IDs, manual sort and filters, pages or infinite loading, retry without losing rows, inline editing…
  • Pivot table: Records summed up by the fields people choose: rows grouped by one or more fields that fold open level by level, columns split by another, one or more…
  • Query builder: Conditions people build by hand to pick out records: each rule is a field, an operator that fits the field (contains, between, in the last N days, is any…
  • Sort order: Several sort keys in order. Each key says its rank in words ("Sort by Plan, A to Z", "then by Size, largest first") with its order named for the field's…
  • Metric rules: Ordered rules that colour a dashboard number. Each rule has a name for what its colour means ("At risk", not just red) and a tone (good, watch, act…
  • Log viewer: Log lines as they stream: it follows the newest line until you scroll up, then counts what arrived and brings you back in one click; filter by level with…
  • JSON viewer: A JSON value as a tree you can read and walk: branches open and close (one level, or all at once), closed ones preview what they hold, every value reads…
  • JSON diff viewer: Two versions of a JSON value compared as one tree: added keys marked +, removed ones struck through with −, changed values read old → new, unchanged keys…
  • Import mapping: Map the columns of a file to the fields of one record type, see what every value becomes, then run the import and get an outcome for each row…
  • Diff table: Proposed edits to a table before they happen: new rows green, removals struck through, changed cells old → new; each change can be left out and Apply…
  • Filter toolbar: The filters on a list kept in view: chips that remove themselves, Add filter with fields and their values, Clear all, and room for search or view controls.
  • Table: A native HTML table for small datasets, composed with children or driven by records; shared server paging, sorting, filters, search, stable-ID selection…

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.