CompactTable
stableHigh-density data table for treasury positions, risk matrices, and compliance grids
import { CompactTable } from "@nodus/design-system/finance"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
columnsreq | CompactTableColumn<T>[] | — | Column definitions with header, key, render function, and alignment |
datareq | T[] | — | Row data array |
rowKeyreq | (row: T) => string | — | Unique key extractor for each row |
density | 'default' | 'compact' | compact | Display density — compact is the finance default |
striped | boolean | true | Zebra striping for readability |
stickyHeader | boolean | true | Sticky header for scrollable tables |
columnsrequiredType
CompactTableColumn<T>[]Default —Column definitions with header, key, render function, and alignment
datarequiredType
T[]Default —Row data array
rowKeyrequiredType
(row: T) => stringDefault —Unique key extractor for each row
densityType
'default' | 'compact'Default compactDisplay density — compact is the finance default
stripedType
booleanDefault trueZebra striping for readability
stickyHeaderType
booleanDefault trueSticky header for scrollable tables
MobileTouch Target
Row tap targets must be ≥44px tall. Table activates horizontal scroll on narrow viewports — wrap in overflow-x-auto.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?