pui-table
v0.2.1
Published
<h1 align="center"> PUI-TABLE </h1>
Downloads
3
Readme
Demo
✏️ CodeSandbox
Instalation
To install pui-table
with npm
:
npm install pui-table --save
🚀 Usage
Add styles to index.js
, _app.js
or whatever the entry point is:
import "pui-table/styles.css";
Component instace:
import Table from "pui-table";
<Table
headers={[
{ Header: "nº", accesor: "priority" },
{ Header: "Name", accesor: "name" },
{ Header: "Age", accesor: "age" }
]}
data={[
{ name: "Rachel", age: 25, priority: 1 },
{ name: "Ross", age: 23, priority: 2 },
{ name: "Joey", age: 24, priority: 3 },
{ name: "Phoebe", age: 26, priority: 4 },
{ name: "Chandler", age: 24, priority: 5 },
{ name: "Mónica", age: 24, priority: 6 }
]}
/>
NPM Package
pui-table
License
pui-table
is released under the MIT License.