Creates a Sx function with extensions
import {createSx} from 'muitils'// orimport {createSx} from 'muitils/sx' Copy
import {createSx} from 'muitils'// orimport {createSx} from 'muitils/sx'
const sx = createSx({ classes: ['section','container'] as const, definitions:{ w100: {width:'100%'}, h100: {height:'100%'} } as const,});const boxSx = sx({ ...sx.def('w100','h100'), [sx.$('& .section')]: { p: 2 }})const box = <Box sx={boxSx} /> Copy
const sx = createSx({ classes: ['section','container'] as const, definitions:{ w100: {width:'100%'}, h100: {height:'100%'} } as const,});const boxSx = sx({ ...sx.def('w100','h100'), [sx.$('& .section')]: { p: 2 }})const box = <Box sx={boxSx} />
Description
Creates a Sx function with extensions
Importing
Example