0.1.6 • Published 1 year ago

@kevin-gaborel/hrnet v0.1.6

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

This tool allows you to create simple tables with some features like sorting.

To install it on your project, copy paste the following line in your terminal:

npm i @kevin-gaborel/hrnet

import the array this way:

import DataTable from '@kevin-gaborel/hrnet';

Then create the component by giving it the data, the title of the columns, and the data corresponding to each column.

<DataTable
  data={yourData}
  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' }
  ]}
/>