RadioGroup
A set of options where the user can pick only one.
<template> <RadioGroup :items="[{ value: 'a', label: 'Default', description: 'Select this option' }]" model-value="a" /></template>Props
| Name | Type | Default |
|---|---|---|
| items | { value: string; label?: string; description?: string; disabled?: boolean }[] | - |
| modelValue | string | - |
Guidelines
Do
- Use this when the user must pick exactly one option from a short, fully-visible list - all options should be visible at once, not hidden behind a dropdown.
- Give every item a
descriptionwhen the label alone doesn't fully explain the choice.
Don't
- Don't use this for a list long enough to need scrolling - use a select/dropdown instead.
- Don't use this for a toggle that isn't mutually exclusive - use
Checkboxfor independent on/off choices.