How to import icons?
Asked by MohammadMajdi about 2 years ago
How can I import the icons to the web projects enviroment? Because in some projects there's icons and I don't know how to import them in here, please help.
You can use material ui for that
npm install @mui/icons-material
and after that you can simply import that in your project:
import AccessAlarmIcon from '@mui/icons-material/AccessAlarm;
and now use them the way you use your components, you can also change there color,size and more fun stuff, for that read the docs Docs