radio group: custom class support, improved options prop

This commit is contained in:
Elijah Duffy
2025-07-03 14:11:09 -07:00
parent 37c3594d1a
commit 07b7102a78
2 changed files with 74 additions and 15 deletions

View File

@@ -106,7 +106,12 @@
<RadioGroup
name="example-radio-group"
label="Choose an option"
items={['male', 'female', 'other', 'prefer not to say']}
options={[
'male',
'female',
'other',
{ value: 'prefer_not_to_say', label: 'Prefer not to say' }
]}
/>
</div>