Answers for "icon button material ui"

4

material ui icon button

// if this helped, don't forget to upvote so others can see

import React from 'react';
import LocationOnIcon from '@material-ui/icons/LocationOn';
import IconButton from '@material-ui/core/IconButton';

export default function ButtonWithIcon () {

  return(
    <IconButton>
      <LocationOnIcon />
    </IconButton>
  )
}
Posted by: Guest on February-05-2021
0

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
Posted by: Guest on September-06-2020
3

react mui icons

npm install @material-ui/core
npm install @material-ui/icons

import RoomIcon from '@material-ui/icons/Room';

<RoomIcon />
Posted by: Guest on October-28-2020
0

deleteicon material ui improt

import AccessAlarmIcon from '@material-ui/icons/AccessAlarm';
Posted by: Guest on January-24-2021
0

iconbutton onclick material ui

<Button color="primary" onClick={() => { console.log('onClick'); }}>
    Primary
</Button>
Posted by: Guest on October-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language