# 单选 Radio

分类：表单 · React：Radio

一组里只能选一个，选项 2–5 个、要同时看到时用它；更多用选择。

## 示例
```html
<fieldset class="xxd-choices">
  <legend>写入方式</legend>
  <label class="xxd-choice"><input type="radio" class="xxd-radio" name="w" checked>只写这一篇</label>
  <label class="xxd-choice"><input type="radio" class="xxd-radio" name="w">全部写入</label>
</fieldset>
```

## 属性与类名
- 类名：`xxd-radio` `xxd-choice` `xxd-choices`

## 键盘与读屏
- 放在 <fieldset> + <legend> 里，读屏先读组名
- 同一组同一个 name：↑ ↓ 切换并选中，Tab 只停一次

## 规则
- 单选是语义上的圆，永远是圆
- 一组选项是一个列表，不是一叠盒子