0
const useStyles = makeStyles(
  (theme) => ({
    iconContainer: {
      margin: theme.spacing(0, 4, 0, 0),
      [theme.breakpoints.up('md')]: {
        margin: theme.spacing(-1, 5, 0, -1),
      },
    },

   <Grid item className={classes.iconContainer}>
          {icon}
        </Grid>

Gestion:

How to via theme to set with and height of class iconContainer

Sava
  • 113
  • 1
  • 13

1 Answers1

0

You can simply add height/width to useStyles object.

iconContainer: {
   width: 100, // px, you can use other units as well '40em', '40rem', '40%', etc... 
   height: 50, 
}

Evgenii
  • 143
  • 1
  • 8
  • how to logo inside have 100,50 on storybook when icon is import like icon: ReactNode; – Sava Jun 18 '21 at 08:22