hrnet-components-library v0.9.0
hrnet-components-library
A library of React components created using create-react-app.
Installation
Run the following command:
npm install hrnet-component-library.
Components
DataTable
A component for create a table for display an employee list. |First Name|Last Name|Start Date|Department|Date of Birth|Street|City|State|Zip Code |--|--|--|--|--|--|--|--|--| | | | | | | | | | |
Props
dataobject for fill the table with the following attributes :{firstName, lastName, startDate, department, dateOfBirth, street, city, state, zipCode}paperStylestyle for the higher parent of the tabletableStylestyle for the container of the tablerowsPerPageOptionsoptions for select how many rows want to display per page
Use
import { DataTable } from 'hrnet-components-library'DatePicker
A component for create a date picker.
Props
labelthe name label of the date pickersetDatethe function will be change the value of the date pickerstylestyle for the date pickerwidththe width of the date pickeridname id of the date picker
Use
import { DatePicker } from 'hrnet-components-library'Modal
A component for create a modal window.
Props
onClickFunctionthe function will be executed when the close button will be clickedcontentMessagethe text inside the modal windowcloseIconthe icon for the close buttonstylestyle of the modal window
Use
import { Modal } from 'hrnet-components-library'SelectMenu
Two components for create select menu : StateSelectMenu & DepartmentSelectMenu
Props
optionsdata for the options of the select menuonChangeFunctionfunction for change the value of the select menulabelname of the select menulabelForfor attribute of the labellabelStylestyle of the labelselectStylestyle of the select menu
Use
import { StateSelectMenu, DepartmentSelectMenu } from 'hrnet-components-library'