add icon material ui code example

Example 1: Material-ui Add icon

import AddIcon from '@material-ui/icons/Add';
// don't forget to import the icon dependancy
// npm install @material Ui/icons

Example 2: @material-ui/icons

yarn add @material-ui/icons

# NPM
npm install @material-ui/icons

Example 3: material ui icons are not clickable how to make it clickable

//surround the whatever Icon you have inside a <IconButton><IconButton/> tag 
this IconButton is being provided by @material-ui/core,so dont forget to import that

Example 4: deleteicon material ui improt

import AccessAlarmIcon from '@material-ui/icons/AccessAlarm';

Example 5: material-ui add icon to switch when on

import React from 'react';
import Switch from '@material-ui/core/Switch';
import AccountCircleIcon from '@material-ui/icons/AccountCircle';

export default function App() {
  return (
    <Switch 
    checkedIcon={<AccountCircleIcon/>}
    />
  );
}