box spacing material ui code example
Example 1: 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;
Example 2: box paddingbottom= 2 in material ui
<Box m={2} pt={3}>
<Button color="default">
Your Text
</Button>
</Box>