mp-components
React components library for CDP
https://components.mpdev.io/
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.\
npm run build
Builds the app for production to the docs
folder.
It creates a static version which can be viewed from GitHub Pages.
How to use
yarn add @resola/mp-components@latest
- Install latest
tailwindcss
and postcss
yarn add tailwindcss@latest postcss@latest
- Generate tailwind config files
npx tailwind init -p
- Update
tailwind.config.js
file to include @resola/mp-components
in purge
section
const path = require('path');
purge: [
...other_options,
path.resolve(__dirname, 'node_modules/@resola/mp-components/**/*.(js|jsx|ts|tsx)')
]