ducduchy-react-components
v2.1.1
Published
## Hello
Readme
Duc Duchy React Components
Hello
- React components that I frequently used. Live Demo
- Checkout my online portfolio
Get started
Installation
- Run
npm i ducduchy-react-components - ~~To use style, add
import "ducduchy-react-components/dist/ducduchy-react-components.cjs.production.min.css";in your app~~ That's it!
Local development
- make sure to run
npm installonce to install dependencies - run
npm run storybookto start the server - default port is 6006, so head to http://localhost:6006/ once it finishes loading
- to add more components, say
MyComponent:- create a folder
src/components/MyComponent - create component file
src/components/MyComponent/MyComponent.tsx - create story file
src/components/MyComponent/MyComponent.stories.tsx - (optional) create a style file
src/components/MyComponent/MyComponent.scssand import it in the component'stsxfile - (TODO) create test file
- create an index.ts file in the component folder, and re-export the component in it
- re-export the component folder in the
src/components/index.tsfile
- create a folder
Notes
- Themes are stored in
src\components\main\theme.scss. You can override with your custom CSS variables or even add your own theme. - Icon used in this project are from Font Awesome (free version). However, you can add Pro version and just use the corresponding prefix as well as icon names after initialization.
- Most of the style follows Material Design 2 and Material Design 3
- Styling uses Tailwind CSS
- Form validation uses React Hook Form
