materialuiupgraded
Version:
Material-UI's workspace package
19 lines (17 loc) • 706 B
JavaScript
import React from 'react';
import FormLabel from '@material-ui/core/FormLabel';
import FormControl from '@material-ui/core/FormControl';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import RadioGroup from '@material-ui/core/RadioGroup';
import Radio from '@material-ui/core/Radio';
export default function RadioGroupWithLabelRequired() {
return (
<FormControl style={{ width: 100 }} required>
<FormLabel>Location</FormLabel>
<RadioGroup value="home">
<FormControlLabel value="home" control={<Radio />} label="Home" />
<FormControlLabel value="work" control={<Radio />} label="Work" />
</RadioGroup>
</FormControl>
);
}