Radio
Data Entry
@rockshin/tao-uiSelects exactly one option from a mutually exclusive set.
When to use
Use RadioGroup when every option is visible and only one can be selected.
Recommended
- Use concise labels.
- Provide a default value when one option is recommended or required.
Avoid
- Do not use RadioGroup for very long option lists; use Select instead.
Examples
Basic usage
Standalone states
Vertical group
Controlled radio group
Group onChange returns the selected value directly.
Vertical and disabled options
Use a vertical layout for longer labels and disable individual options.
Native form submission
Set a group name to read its selected value from FormData.
Radio group sizes
Group options inherit size for consistent alignment and targets.