Behive Tech Component Registry

Table

v0.2.4Stable

A bare data table: describe `columns` once (a `title` plus a `dataIndex` or a custom `render`), pass `data`, get a `<table>` back. No sorting, pagination or empty state — add those around it.

pnpm add @behivetech/atoms.table

A bare data table: describe columns once (a title plus a dataIndex or a custom render), pass data, get a <table> back. No sorting, pagination or empty state — add those around it.

Usage

Open in new tab

Properties

Table props

PropTypeDefaultDescription
columns*TableColumn<TRow>[]—Column definitions, rendered left to right
data*TRow[]—Rows to render, in the order given — Table does not sort, paginate, or filter
rowKey*(row: TRow) => string—Returns a stable, unique key for a row, used as its React key
classNamestring—Additional class names to merge with the component root element