---
order: 6
title:
  zh-CN: 单选组合 - 配合 name 使用
  en-US: Named Radio Group
---

## zh-CN
可以为 `RadioGroup` 配置 name 参数，为组合内的 input 元素赋予相同的 name 属性，使浏览器把 `RadioGroup` 下的 Radio 真正看作是一组（例如可以通过方向键始终在同一组内更改选项）。


## en-US
By setting the `name` property on a `RadioGroup`, this name will cascade to all `<input>` elements that are generated by child `Radio` components. It is usually used to let the browser see your `RadioGroup` as a real "group" and keep the default behavior. For example, using left/right keyboard arrow to change your selection that in the same `RadioGroup`.
