37 lines
856 B
TypeScript
37 lines
856 B
TypeScript
|
|
import Box from '@mui/material/Box';
|
||
|
|
import TextField from '@mui/material/TextField';
|
||
|
|
|
||
|
|
function RedBar() {
|
||
|
|
return (
|
||
|
|
<Box
|
||
|
|
sx={(theme) => ({
|
||
|
|
height: 20,
|
||
|
|
backgroundColor: 'rgba(255, 0, 0, 0.1)',
|
||
|
|
...theme.applyStyles('dark', {
|
||
|
|
backgroundColor: 'rgb(255 132 132 / 25%)',
|
||
|
|
}),
|
||
|
|
})}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function LayoutTextFields() {
|
||
|
|
return (
|
||
|
|
<Box
|
||
|
|
sx={{
|
||
|
|
display: 'flex',
|
||
|
|
flexDirection: 'column',
|
||
|
|
'& .MuiTextField-root': { width: '25ch' },
|
||
|
|
}}
|
||
|
|
>
|
||
|
|
<RedBar />
|
||
|
|
<TextField label={'margin="none"'} id="margin-none" />
|
||
|
|
<RedBar />
|
||
|
|
<TextField label={'margin="dense"'} id="margin-dense" margin="dense" />
|
||
|
|
<RedBar />
|
||
|
|
<TextField label={'margin="normal"'} id="margin-normal" margin="normal" />
|
||
|
|
<RedBar />
|
||
|
|
</Box>
|
||
|
|
);
|
||
|
|
}
|