22 lines
510 B
TypeScript
22 lines
510 B
TypeScript
|
|
import Box from '@mui/material/Box';
|
||
|
|
|
||
|
|
export default function BreakpointsAsObject() {
|
||
|
|
return (
|
||
|
|
<div>
|
||
|
|
<Box
|
||
|
|
sx={{
|
||
|
|
width: {
|
||
|
|
xs: 100, // theme.breakpoints.up('xs')
|
||
|
|
sm: 200, // theme.breakpoints.up('sm')
|
||
|
|
md: 300, // theme.breakpoints.up('md')
|
||
|
|
lg: 400, // theme.breakpoints.up('lg')
|
||
|
|
xl: 500, // theme.breakpoints.up('xl')
|
||
|
|
},
|
||
|
|
}}
|
||
|
|
>
|
||
|
|
This box has a responsive width.
|
||
|
|
</Box>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|