0.1.0 • Published 2 years ago
@andrii_shpak/rtable v0.1.0
Headless React Table (alpha)
Quick Features
- Lightweight at 3kb
- 100% TypeScript, but not required (you can use JS if you want)
- Headless (100% customizable, Bring-your-own-UI)
- Row Selection
- Row Expansion
- Pagination
Demo
Quickstart
pnpm add rtable
# or
yarn add rtable
# or
npm i rtable
Then, import and use individual components:
import RTable from 'r-table';
<RTable rows={[]} columns={[]}/>
Properties
Property | Type | Description | ||
---|---|---|---|---|
height | string/number | Height of body component. Needed for scroll | ||
rows | NonNullable<Array<{ name: string: any }>> | Table data | ||
columns | Columns of the table | |||
columns.key | string | key of the row. For example name or lastName | ||
columns.type | 'text' | 'number' | 'date' | Types of column value |
0.1.0
2 years ago