Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
/ itable Public archive

Declarative React table. Learn once use everywhere

License

Notifications You must be signed in to change notification settings

superdispatch/itable

Repository files navigation

iTable

React table that exposing fundamental APIs of HTML table

Demo

Simple table example:

Edit r527vnyrxo

Usage

Import any @itable/* package with corresponding UIKit library and use same APIs.

import {
  TableBody,
  TableData,
  TableHead,
  TableHeader,
  TableRow,
  Table
} from "@itable/material-ui";

<Table data={data}>
  <TableHead>
    <TableHeader>ID</TableHeader>
    <TableHeader>Name</TableHeader>
  </TableHead>
  <TableBody>
    {item => (
      <TableRow>
        <TableData>{item.id}</TableData>
        <TableData>{item.name}</TableData>
      </TableRow>
    )}
  </TableBody>
</Table>