webstaurant-table

1.10.0 • Public • Published

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} />
    )
}

Readme

Keywords

none

Package Sidebar

Install

npm i webstaurant-table

Weekly Downloads

1

Version

1.10.0

License

ISC

Unpacked Size

355 kB

Total Files

12

Last publish

Collaborators

  • jutz