material ui logo code example

Example 1: @material-ui/icons

yarn add @material-ui/icons

# NPM
npm install @material-ui/icons

Example 2: display logo in material ui

<AppBar color="inherit">
    <Toolbar>
        <img src="logo.png" alt="logo" className={classes.logo} />
      </Toolbar>
</AppBar>

Example 3: display logo in material ui

const useStyles = makeStyles({
  logo: {
    maxWidth: 160,
  },
});

Example 4: react mui icons

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

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

<RoomIcon />

Example 5: material-ui

yarn add @material-ui/core

npm install @material-ui/core

Example 6: matireal ui

$ npm install @material-ui/core

Tags:

Go Example