0.0.13 • Published 10 months ago

react-table-mc v0.0.13

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

React table

A simple, customizable and easy to use table build with React

Static Badge

Features

  • Display has much column and rows as you want
  • Sort data
  • Pagination
  • Search bar
  • Select page length

Installation

To install, you can use npm or yarn:

$ npm install react-table-mc
$ yarn add react-table-mc

The package is built with Node v16.15.1 and NPM v8.4.1

Usage

The component needs two props:

PropsTypesRequiredDefaultDescription
intialDataArrayAn array of object, each object will be a row and its values will be columns
columnsArray []An array of object corresponding with the value in initial data
import { Table } from "react-table-mc"
import "react-table-mc/dist/style.css"

function App() {

  return (
    <div className="App">
      <Table initialData={data} columns={[
                { title: "First Name", data: "firstName" },
                { title: "Last Name", data: "lastName" },
                { title: "Start Date", data: "startDate" },
                { title: "Department", data: "department" },
                { title: "Date of Birth", data: "dateOfBirth" },
                { title: "Street", data: "street" },
                { title: "City", data: "city" },
                { title: "State", data: "state" },
                { title: "Zip Code", data: "zipCode" }
            ]} />
    </div>
  )
}

export default App

🔗 Links

portfolio linkedin

0.0.13

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago