Skip to main content
Renders rows under column headers, scrolling sideways inside the mount rather than widening it.

Type Parameters

T

T

Parameters

__namedParameters

TapTableProps<T>

Returns

ReactElement

Remarks

A cell with no render shows the row’s own value under key when that value is a string, number, boolean or bigint, and nothing otherwise, so an object or an array needs a render. With empty and no rows, the table is replaced whole by that node. With onRowClick each row becomes focusable and answers Enter and Space as well as a click, and hovers on --bg-subtle; the headers and rules follow --fg-muted and --divider.

Example