Tables

Tables table primitive — flat rows, grouped rows, chip filters, board / kanban view, sticky headers, column resize. Reference · tables ## Table primitive {#tables} ### table {#table} First-class JSON table. Two shapes: flat `rows` or grouped `groups`. Renders into a real ` ` plus a runtime control bar (filter input, stats counter, Table / List / Cards view toggle, sticky header, full-width auto-fit). Object-form headers and cells declare chip filters with multi-valued cells; groups are collapsible. A header's `status` map turns a column's values into colour-coded status pills (`good` / `warn` / `bad` / `info` / `neutral`) — the author maps their own values, so the colour language stays locale-neutral. ### Flat rows {#tables-flat} ### Grouped rows with per-group counts {#tables-grouped} ### Chip filters + multi-valued cells {#tables-chips} Headers can declare a fixed chip set with `filter: "chips"`; cells use the object form `{ value, values }` to belong to one or more chip values. AND across columns, OR within a column. Combine with the text filter. ### Board view: kanban lanes in declared order {#tables-board} Set `view: "board"` on the table block to open in kanban lanes by default — rows become cards in one lane per unique value of the group column. Declare `boardOrder` on the column header to force the lane sequence; without it, lanes appear in first-occurrence order, which rarely matches the kanban flow you want. Values present in row data but missing from `boardOrder` render at the end so authors can spot the omission. The other views (Table / List / Cards) are still one click away in the view toggle. ### Per-column wrap for multi-line cells {#tables-wrap} Mark a column with `wrap: true` on the header object and cells in that column honour explicit newlines (`\n`) from the source. Use for narrative columns — design notes, trade-offs, error-message bodies — where the cell content reads as a short paragraph instead of a single line.