@erpardeepjain/rc-pui

1.0.3 • Public • Published

This Package contains below React UI Components available to use

  • Multi Select Dropdown
  • Currency Formatter
  • Search Input
  • Pagination

💥 Working Demo - Stackblitz

Documentation is still incomplete, will try to update asap. PR's for New Components are Welcome

Install

npm install --save @erpardeepjain/rc-pui

Usage

Pagination

Screenshot 2023-02-04 at 10 28 47 AM

Name Description
pageCount number
itemCount number
currentPage number
onPageChange function
showLabel boolean
showStartEndPage boolean
import { Pagination } from '@erpardeepjain/rc-pui';
...
const {pageCount, itemCount, currentPage, onPageChange, showLabel, showStartEndPage } = paginationConfig;
...
<Pagination paginationConfig={paginationConfig} />

Currency Formatter

Screenshot 2023-02-04 at 10 29 10 AM

props

Name Description Default
value integer N/A
prefix string N/A
zeroAllowed boolean true
noSpan boolean N/A
onlyComma boolean N/A
eleClass string N/A
import { CurrencyFormat } from '@erpardeepjain/rc-pui';
...
<CurrencyFormat prefix="$" value="123456789" zeroAllowed />

Search Input

Screenshot 2023-02-04 at 10 29 38 AM

Name Description Default
placeholder string Search
waitTime intiger 500
minSearchChar intiger 2
onChange function function
import { SearchInput } from '@erpardeepjain/rc-pui';
...
const onSearchCB = (searchedValue) => {
    console.log(searchedValue);
};
...
<SearchInput onChange={onSearchCB} placeholder="Search Record" waitTime={300} minSearchChar={2} />

Multi Select Dropdown

Screenshot 2023-02-09 at 6 22 14 PM

Name Description Default
name string N/A
label string Select Multiple
options array []
selectAll boolean false
onSelect function function
import { MultiSelect } from '@erpardeepjain/rc-pui';
...
const handleFilter = (selectedItems) => {
    console.log(selectedItems);
};
...
<MultiSelect 
    title="Status"
    options={['completed', 'failed', 'processing']} 
    name="status"
    selectAll="true"
    onSelect={handleFilter}
/>

Package Sidebar

Install

npm i @erpardeepjain/rc-pui

Weekly Downloads

0

Version

1.0.3

License

none

Unpacked Size

15.1 kB

Total Files

9

Last publish

Collaborators

  • mrpardeep