0.1.0 • Published 2 years ago

@andrii_shpak/rtable v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

Visit site with example

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

PropertyTypeDescription
heightstring/numberHeight of body component. Needed for scroll
rowsNonNullable<Array<{ name: string: any }>>Table data
columnsColumns of the table
columns.keystringkey of the row. For example name or lastName
columns.type'text''number''date'Types of column value