oks-ui

Data Display

Table

Config-driven data table with sorting, row selection, row expansion, a sticky header, and loading and empty states.

Example

Expand
Status
INV-1000Acme$200
Paid
INV-1001Globex$337
Pending
INV-1002Initech$474
Overdue
INV-1003Umbrella$611
Paid
INV-1004Stark$748
Pending
INV-1005Acme$885
Overdue

Showing 1–6 of 23

Props

columns

TableColumn<Row>[]

Default:

{ key, header, align?, sortable?, sortValue?, render?, width?, headerClassName?, cellClassName? }.

rows

Row[]

Default:

The data.

getRowKey

(row, index) => string | number

Default:

Stable key — use an id field, not the index.

aria-label

string

Default:

Required.