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
31 lines
822 B
JavaScript
31 lines
822 B
JavaScript
import * as React from 'react';
|
|
import FormControl from '@mui/joy/FormControl';
|
|
import FormLabel from '@mui/joy/FormLabel';
|
|
import Radio from '@mui/joy/Radio';
|
|
import RadioGroup from '@mui/joy/RadioGroup';
|
|
|
|
export default function ControlledRadioButtonsGroup() {
|
|
const [value, setValue] = React.useState('female');
|
|
|
|
const handleChange = (event) => {
|
|
setValue(event.target.value);
|
|
};
|
|
|
|
return (
|
|
<FormControl>
|
|
<FormLabel>Gender</FormLabel>
|
|
<RadioGroup
|
|
defaultValue="female"
|
|
name="controlled-radio-buttons-group"
|
|
value={value}
|
|
onChange={handleChange}
|
|
sx={{ my: 1 }}
|
|
>
|
|
<Radio value="female" label="Female" />
|
|
<Radio value="male" label="Male" />
|
|
<Radio value="other" label="Other" />
|
|
</RadioGroup>
|
|
</FormControl>
|
|
);
|
|
}
|