mf_react_component
v1.0.2
Published
React component library for internal workings in PGC
Downloads
3
Readme
React Component Library for NFT-Marketplace Micro-Frontend POC
All the common components used in the project can be imported as follows:
Importable Components:
- CircularLoader
- Sidenav
- Cards
- Table
Import line in the code:
import {<Component Name>} from 'mf_react_component'
1. CircularLoader
Props:
- height- Specify height of the loader
- width - Specify width of the loader
- color- Specify color of the loader
- ariaLabel- Label of the loader
2. Sidenav
Props:
- items- array of objects containing below props:
- name- name of the item
- link- relative path of the page to be rendered
- styles- inline css styles
3. Cards
Props:
- image- url of the image to b rendered
- desc- card description
- title- card title
- style- inline css-style
- enableButton- boolean
4. Table
Props:
- colNames- array of object containing name and label for column headers
- data- array of object containing the data to be shown as rows
- ROW_SIZE- size of each row