Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
28 lines
841 B
JavaScript
28 lines
841 B
JavaScript
import Switch from '@mui/material/Switch';
|
|
import FormGroup from '@mui/material/FormGroup';
|
|
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
import FormControl from '@mui/material/FormControl';
|
|
import FormLabel from '@mui/material/FormLabel';
|
|
|
|
export default function FormControlLabelPosition() {
|
|
return (
|
|
<FormControl component="fieldset">
|
|
<FormLabel component="legend">Label placement</FormLabel>
|
|
<FormGroup aria-label="position" row>
|
|
<FormControlLabel
|
|
value="bottom"
|
|
control={<Switch color="primary" />}
|
|
label="Bottom"
|
|
labelPlacement="bottom"
|
|
/>
|
|
<FormControlLabel
|
|
value="end"
|
|
control={<Switch color="primary" />}
|
|
label="End"
|
|
labelPlacement="end"
|
|
/>
|
|
</FormGroup>
|
|
</FormControl>
|
|
);
|
|
}
|