webstaurant-table
v1.10.0
Published
WebstaurantTable is a lightweight table component styled with Tailwind.
Downloads
4
Readme
WebstaurantTable
WebstaurantTable is a lightweight table component styled with Tailwind.
Install
Use the package manager npm to install webstaurant-table.
npm install webstaurant-table
Features
- Display structured rows of data associated with a group of defined columns.
Quickstart
import React from 'react
import { Table } from 'webstaurant-table'
const App = () => {
const columns = [
{
title: 'Id',
accessor: 'id',
},
{
title: 'Name',
accessor: 'name',
}
]
const data = [
{
id: '1',
name: 'Waldo',
},
{
id: '2',
name: 'Jeremy'
}
]
return (
<Table columns={columns} data={data} />
)
}