Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Reference for Nuxt UI v4 (125+ components built on Reka UI + Tailwind CSS v4) including forms, overlays, and theming.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/radio-group.md
1# RadioGroup23A set of radio buttons to select a single option from a list.45> Based on [Reka UI RadioGroup](https://reka-ui.com/docs/components/radio-group)67## Key Props89- `items`: as an array of strings or numbers:1011## ::component-code1213prettier: true14ignore:1516- modelValue17- items18external:19- items20- modelValue21props:22modelValue: 'System'23items: - 'System' - 'Light' - 'Dark'2425---2627::2829You can also pass an array of objects with the following properties:3031- `label?: string`{lang="ts-type"}32- `description?: string`{lang="ts-type"}33- [`value?: string`{lang="ts-type"}](#value-key)34- `disabled?: boolean`{lang="ts-type"}35- `class?: any`{lang="ts-type"}36- `ui?: { item?: ClassNameValue, container?: ClassNameValue, base?: ClassNameValue, 'indicator'?: ClassNameValue, wrapper?: ClassNameValue, label?: ClassNameValue, description?: ClassNameValue }`{lang="ts-type"}3738## ::component-code3940ignore:4142- modelValue43- items44external:45- items46- modelValue47externalTypes:48- RadioGroupItem[]49props:50modelValue: 'system'51items: - label: 'System'52description: 'This is the first option.53- `legend`: to set the legend of the RadioGroup.54- `color`: to change the color of the RadioGroup.55- `variant`: to change the variant of the RadioGroup.56- `size`: to change the size of the RadioGroup.57- `orientation`: to change the orientation of the RadioGroup.58- `indicator`: to change the position or hide the indicator.59- `disabled`: to disable the RadioGroup.6061## Usage6263```vue64<URadioGroup65<!-- props here -->66/>67```68