import * as React from 'react'; import Grid from '@mui/material/GridLegacy'; import FormLabel from '@mui/material/FormLabel'; import FormControl from '@mui/material/FormControl'; import FormControlLabel from '@mui/material/FormControlLabel'; import RadioGroup from '@mui/material/RadioGroup'; import Radio from '@mui/material/Radio'; import Paper from '@mui/material/Paper'; import { HighlightedCode } from '@mui/docs/HighlightedCode'; export default function SpacingGrid() { const [spacing, setSpacing] = React.useState(2); const handleChange = (event: React.ChangeEvent) => { setSpacing(Number((event.target as HTMLInputElement).value)); }; const jsx = ` `; return ( {[0, 1, 2].map((value) => ( ({ height: 140, width: 100, backgroundColor: '#fff', ...theme.applyStyles('dark', { backgroundColor: '#1A2027', }), })} /> ))} spacing {[0, 0.5, 1, 2, 3, 4, 8, 12].map((value) => ( } label={value.toString()} /> ))} ); }