Closed Industrial closed 1 year ago
sx={{ paddingTop: (theme) => { return { [theme.breakpoints.up('sm')]: theme.spacing(2), } // theme.breakpoints.up('sm') // paddingTop: theme.spacing(2), // }, // [theme.breakpoints.up('md')]: { // paddingTop: theme.spacing(4), // }, // return theme.spacing(1) }, }}
I'm used to the sx property taking a theme function, so I'm not sure how to do this.
sx
theme
<Box sx={{ paddingTop: { sm: 2 } }} />
I'm used to the
sx
property taking atheme
function, so I'm not sure how to do this.