create icon material ui code example
Example 1: Material-ui Add icon
import AddIcon from '@material-ui/icons/Add';
Example 2: @material-ui/icons
yarn add @material-ui/icons
# NPM
npm install @material-ui/icons
Example 3: react mui icons
npm install @material-ui/core
npm install @material-ui/icons
import RoomIcon from '@material-ui/icons/Room';
<RoomIcon />
Example 4: material ui icon
<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:
npm install @material-ui/icons
yarn add @material-ui/icons
https://material.io/resources/icons/?style=baseline