Use when implementing expand and collapse content sections.
中文简介正在准备中。当前显示原文说明。
Use when implementing select a single option from a group.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
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
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Use when implementing expand and collapse content sections.
中文简介正在准备中。当前显示原文说明。
Use when implementing user account configuration and preferences.
中文简介正在准备中。当前显示原文说明。
Use when implementing social activity and updates stream.
中文简介正在准备中。当前显示原文说明。
Use when implementing conversational AI chat interfaces.
中文简介正在准备中。当前显示原文说明。
Use when implementing handling AI-specific errors.
中文简介正在准备中。当前显示原文说明。
Use when implementing loading states for AI operations.
中文简介正在准备中。当前显示原文说明。