Files
react-test/docs/data/material/components/text-fields/LayoutTextFields.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
856 B
JavaScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
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>
);
}