Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build accessible, unstyled Vue 3 components using Reka UI (formerly Radix Vue) with WAI-ARIA compliance.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/radio-group.md
1# Radio Group23Mutually exclusive selection45**Parts:** `RadioGroupRoot`, `RadioGroupItem`, `RadioGroupIndicator`67## RadioGroupRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `as` | `AsTag \| Component` | `"div"` |13| `asChild` | `boolean` | - |14| `defaultValue` | `string` | - |15| `dir` | `"ltr" \| "rtl"` | - |16| `disabled` | `boolean` | `false` |17| `loop` | `boolean` | `true` |18| `modelValue` | `string` | - |19| `name` | `string` | - |20| `orientation` | `"vertical" \| "horizontal"` | - |21| `required` | `boolean` | `false` |2223### Emits24| Event | Payload |25|-------|---------|26| `update:modelValue` | `[payload: string]` |2728### Slots29| Slot | Type |30|------|------|31| `modelValue` | `string \| undefined` |3233## RadioGroupItem3435### Props36| Prop | Type | Default |37|------|------|---------|38| `as` | `AsTag \| Component` | `"button"` |39| `asChild` | `boolean` | - |40| `disabled` | `boolean` | `false` |41| `id` | `string` | - |42| `name` | `string` | - |43| `required` | `boolean` | - |44| `value` | `string` | - |4546## RadioGroupIndicator4748### Props49| Prop | Type | Default |50|------|------|---------|51| `as` | `AsTag \| Component` | `"span"` |52| `asChild` | `boolean` | - |53| `forceMount` | `boolean` | - |54