Answers for "iconbutton onclick 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

iconbutton onclick material ui

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

Browse Popular Code Answers by Language