/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/components/switches/SwitchLabels.js
13 строк
473 B
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import FormGroup from '@mui/material/FormGroup'; import FormControlLabel from '@mui/material/FormControlLabel'; import Switch from '@mui/material/Switch'; export default function SwitchLabels() { return ( <FormGroup> <FormControlLabel control={<Switch defaultChecked />} label="Label" /> <FormControlLabel required control={<Switch />} label="Required" /> <FormControlLabel disabled control={<Switch />} label="Disabled" /> </FormGroup> ); }