INTEGRATIONS / TABLES

More records. The same care.

Choose ordinary pages or a bounded scrolling view. Keep the data contract, selection and edit drafts clear.

Start with the right view.

DataTable supports ordinary pages, inline editing and externally controlled service queries. WindowedTable mounts a small portion of a complete dataset already loaded in the browser. Both use the same typed columns.

The large issue workspace demonstrates 10,000 illustrative records, grouping, sorting, filtering, CSV export and a detail editor. Scroll and Pages share selection and view settings.

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/windowed-table.json
npx shadcn@latest add https://ui.bld8.dev/r/large-issue-table.json

Group supplied records.

React / TypeScript
<DataTable caption="Issues" rows={issues} columns={columns}
  rowKey={issue=>issue.id} pageSize={20}
  grouping={{key:issue=>issue.status,label:key=>statusLabels[key]}}
  selectable selectedKeys={selected} onSelectedKeysChange={setSelected}/>

Local group counts and group selection include every supplied filtered member, even on other pages or in collapsed groups. With a server query, they describe only the supplied service page. The page checkbox selects that page’s records.

Grouped pagination counts headings as entries and repeats the heading when a page begins inside a group. Collapsing preserves selection. Save or cancel an active inline edit before collapsing its group; hosts controlling collapsed keys should apply the same draft policy.

Keep scrolling predictable.

React / TypeScript
<WindowedTable caption="Issues" rows={filteredAndSortedIssues}
  columns={columns} rowKey={issue=>issue.id}
  height={480} rowHeight={56} overscan={5}
  selectable selectedKeys={selected} onSelectedKeysChange={setSelected}
  onRowAction={issue=>openDetails(issue)}
  sort={sort} onSortChange={setSort}/>

The host filters and sorts. Supply stable unique keys and single-line display cells. Keep variable-height content and editing forms outside the scrolling rows. Limits are 20,000 supplied records, 40,000 flattened entries, a 240–800px viewport and fixed 44–96px rows.

Arrow keys move between rows, Home/End jump, PageUp/PageDown move by the viewport, Space selects and Enter opens details. Group disclosures also support Left/Right. One active row can remain mounted outside the window to preserve focus. Offer the ordinary paged view for sequential reading.

Scrolling follows input immediately; rows do not animate their position. Shared easing applies to hover, disclosures and the view indicator. Reduced motion removes decorative travel. Check the result with your actual content and assistive technology.

Connect a complete source.

React / TypeScript
<LargeIssueTable loadRows={loadCompleteIssues} onSaveIssue={saveIssue}/>

Keep callbacks stable. loadRows receives an AbortSignal and returns the complete Issue array, up to 20,000 records. It is separate from the paged issue repository; its existing limits remain unchanged.

onSaveIssue receives an ID, expected revision, title/status patch and AbortSignal. Return the complete saved issue with the same ID, submitted values and a newer revision. The host owns permissions, persistence and the atomic revision check. Rejected saves retain the draft. Cancelling aborts the request, but a server may already have committed; reload to reconcile.

Selection outside the active filter remains visible in the summary and available for export or clearing. CSV uses selected loaded records and escapes spreadsheet formula prefixes. Source reload clears selection and rejects stale drafts. Without callbacks, records and changes last for this page session.

Use the pure model independently.

buildTableRows, getTableWindow and getTablePage are available from @bld8/ui/table-grouping, including Server Components. Registry installations use the equivalent local bld8/table-grouping file. No API, database, authentication or collaborative service is included.