Files
react-test/docs/data/joy/components/radio-button/RadioFocus.tsx

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

25 lines
782 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import FormControl from '@mui/joy/FormControl';
import FormLabel from '@mui/joy/FormLabel';
import FormHelperText from '@mui/joy/FormHelperText';
import Radio, { radioClasses } from '@mui/joy/Radio';
import RadioGroup from '@mui/joy/RadioGroup';
export default function RadioFocus() {
return (
<FormControl>
<FormLabel>Focus</FormLabel>
<RadioGroup name="radio-buttons-group-focus">
<Radio value="default" label="Default" />
<Radio
value="relative"
label="Position relative"
sx={{ [`& .${radioClasses.radio}`]: { position: 'relative' } }}
/>
</RadioGroup>
<FormHelperText>
Select an option and use keyboard to see the focus outline
</FormHelperText>
</FormControl>
);
}