export default function Example() {
return (
<>
<RadioGroup
legend="Select an option"
required
error
errorMessage="Please select an option"
variant="primary"
>
<RadioButton label="Option 1" value="opt1" id="opt1" />
<RadioButton label="Option 2" value="opt2" id="opt2" />
<RadioButton label="Option 3" value="opt3" id="opt3" />
<RadioButton label="Option 4" value="opt4" id="opt4" />
</RadioGroup>
</>
);
}
To enter the code editing mode, press Enter. To exit the edit mode, press Escape
You are editing the code. To exit the edit mode, press Escape