// First install this:
npm i @mui/icons-material
// Import the icon like this and use it:
import NameOfTheIcon from '@mui/icons-material/NameOfTheIcon';
...
<NameOfTheIcon />
// Version 5.x.x for Material-UI Icons
// NPM
npm install @mui/icons-material
// YARN
yarn add @mui/icons-material
The @mui/icons-material package depends on @mui/material, which requires Emotion packages.
If you don't use Material UI in your project yet, install the icons package with npm install @mui/icons-material @mui/material @emotion/styled @emotion/react.
See the Installation page for additional docs about how to make sure everything is set up correctly.
The `@mui/icons-material` package depends on @mui/material, which requires Emotion packages.
If you don't use Material UI in your project yet, install the icons package with `npm install @mui/icons-material @mui/material @emotion/styled @emotion/react`.
See the Installation page for additional docs about how to make sure everything is set up correctly.
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<Icon>add_circle</Icon>
<Icon color="primary">add_circle</Icon>
<Icon color="secondary">add_circle</Icon>
<Icon style={{ color: green[500] }}>add_circle</Icon>
<Icon fontSize="small">add_circle</Icon>
<Icon style={{ fontSize: 30 }}>add_circle</Icon>