task11-custom-components-lib-ui
v1.0.19
Published
This is the implementation of a custom components library similar to mui components
Downloads
2
Readme
Innowise Lab Internship: Custom-components-lib
This is the implementation of a custom components library similar to mui components
How to run the app:
- Install:
npm i task11-custom-components-lib
https://www.npmjs.com/package/task11-custom-components-lib
- Import Components into project with necessary props.
The Technologies used:
- Webpack,
- TypeScript,
- ESLint, Prettier,
- React,
- SCSS modules,
- Storybook,
- Jest, react testing library for unit tests,
Set of components:
- Button - similar to https://mui.com/material-ui/react-button/ Props:
- variant: 'text' | 'contained' | 'outlined' , contained as default
- disabled
- onClick
- size: 'small' | 'medium' | 'large'
- TextField - https://mui.com/material-ui/react-text-field/ Props:
- variant: 'outlined' | 'filled' | 'standart';
- error;
- errorText;
- label;
- disabled;
- Select - https://mui.com/material-ui/react-select/ Props:
- label;
- disabled;
- options;
- onChange (method for getting selected option in a component);
- selected (passed selected option to component from parent component);
- Checkbox - https://mui.com/material-ui/react-checkbox/ Props:
- checked;
- label;
- color;
- disabled;
- onChange;
- Switch- https://mui.com/material-ui/react-switch/ Props:
- checked;
- onChange;
- disabled;
- label;
- Modal - https://mui.com/material-ui/react-modal/ Props:
open;
onClose;
children;