Answers for "material ui theme.spacing"

1

spacing material ui makestyles

const theme = createMuiTheme({
  spacing: [0, 4, 8, 16, 32, 64],
});

theme.spacing(2); // = 8
Posted by: Guest on December-21-2020
2

spacing material ui

const theme = {
  spacing: [0, 2, 3, 5, 8],
}

<Box m={-2} /> // margin: -3px;
<Box m={0} /> // margin: 0px;
<Box m={2} /> // margin: 3px;
Posted by: Guest on December-21-2020

Browse Popular Code Answers by Language