primitives/@mihcm/ui·v0.21.0·stable
RadioGroup
Mutually exclusive option selection. Fieldset with RadioGroupItem children sharing state via React Context.
Props
The full prop API for RadioGroup. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
value | string | — | Currently selected value. Required. | 0.5.0 |
onValueChange | (value: string) => void | — | Called when selection changes. Required. | 0.5.0 |
orientation | 'horizontal' | 'vertical' | 'vertical' | Layout direction of items. | 0.5.0 |
disabled | boolean | false | Disables all items. | 0.5.0 |
Import
import { RadioGroup, RadioGroupItem } from '@mihcm/ui/RadioGroup';