skills/radio/SKILL.md
Use when implementing select a single option from a group.
npx skillsauth add thedaviddias/ux-patterns-for-developers radioInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Select a single option from a group
Radio buttons are form controls that allow users to select exactly one option from a set of mutually exclusive choices. Unlike checkboxes, radio buttons work in groups where selecting one automatically deselects all others in the same group. Radio buttons are essential for forms where users must make a single choice from multiple options, such as selecting a payment method, choosing a size, or picking a delivery option.
name attribute work togetherreferences/pattern.md, then choose the smallest viable variation.Target Metrics:
The Problem: Using radio buttons when users need to select multiple options confuses the interaction model.
How to Fix It? Use checkboxes for multiple selections, radio buttons only for single selection.
The Problem: Radio buttons without proper fieldset grouping are inaccessible and confusing.
How to Fix It? Always wrap radio button groups in fieldsets with descriptive legends.
The Problem: Radio buttons with different names scattered throughout a form creates confusion.
How to Fix It?
Use the same name attribute for all radio buttons in a logical group.
For full implementation detail, examples, and testing notes, see references/pattern.md.
Pattern page: https://uxpatterns.dev/patterns/forms/radio
tools
Use when implementing multi-step forms and processes.
content-media
Use when implementing video playback with controls.
development
Use when choosing, comparing, or implementing UX patterns across the UX Patterns for Developers corpus.
tools
Use when implementing user profile and account management.