1.10.0 • Published 4 years ago

webstaurant-table v1.10.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

4 years ago

1.10.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago