Material-UI is a very big package and I only want to use one component of it.
Is there a way to install a package that only contains the component I want to use?
e.g.
use
import Button from '@material-ui/core/Button';
But only have in your package.json
something like @material-ui/core/Button
.
The reason I want this is to have a small node_modules
.
you can install each component of Material-UI via bit.dev collection:
https://bit.dev/mui-org/material-ui
Here is the Button component for example:
https://bit.dev/mui-org/material-ui/button
I exported the project to bit.dev and I'm trying to keep it up to date as much as possible.
You can install and use the isolated material components here: bit.dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With