Radio 单选框

优质
小牛编辑
128浏览
2023-12-01

Select one of a set of options.

Basic

<radio>Radio</radio>

Disabled

<radio disabled="disabled">Disabled</radio>
<radio disabled="disabled" checked="checked">Disabled</radio>

Group

<radio-group>
  <radio value="1" checked="checked">A</radio>
  <radio value="2">B</radio>
  <radio value="3">C</radio>
  <radio value="4">D</radio>
</radio-group>