Answers for "material ui 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
2

box paddingbottom= 2 in material ui

<Box m={2} pt={3}>
  <Button color="default">
    Your Text
  </Button>
</Box>
Posted by: Guest on August-26-2020

Browse Popular Code Answers by Language