◇
RadioGroup
3 partsAnatomy
Import the parts and compose them. Each part forwards attributes to its underlying element.
vue
import {
RadioGroupIndicator,
RadioGroupItem,
RadioGroupRoot,
} from '@robonen/primitives/radio-group';
<RadioGroupIndicator>
<RadioGroupItem />
<RadioGroupRoot />
</RadioGroupIndicator>API Reference
RadioGroupIndicator
Indicator| Prop | Type | Description |
|---|---|---|
forceMount? | boolean | — |
RadioGroupItem
Item| Prop | Type | Description |
|---|---|---|
value | string | — |
disabled? | boolean | — |
required? | boolean | — |
RadioGroupRoot
Root| Prop | Type | Description |
|---|---|---|
defaultValue? | string | — |
disabled? | boolean | — |
required? | boolean | — |
name? | string | — |
orientation? | 'horizontal' | 'vertical' | — |
dir? | RovingDirection | — |
loop? | boolean | — |