npm install @material-ui/core
npm install @material-ui/icons
import RoomIcon from '@material-ui/icons/Room';
<RoomIcon />
// Version 5.x.x for Material-UI Icons
// NPM
npm install @mui/icons-material
// YARN
yarn add @mui/icons-material
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
npm i @mui/icons-material
<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" />
// Font Icons
// In order to use the font Icon component, you must first add the Material icons font. Here are some instructions on how to do so. For instance, via Google Web Fonts:
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
SVG Icons
In order to use prebuilt SVG Material icons, such as those found in the icons demos you must first install the @material-ui/icons package:
// with npm
npm install @material-ui/icons
// with yarn
yarn add @material-ui/icons
// resource for list of icons
https://material.io/resources/icons/?style=baseline
<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>