add 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: material ui icons are not clickable how to make it clickable
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/>}
/>
);
}