## Radio ### Install ``` javascript import { RadioGroup, Radio } from 'vant'; Vue.use(RadioGroup); Vue.use(Radio); ``` ### Usage #### Basic Usage Use `v-model` to bind the name of checked radio ```html Radio 1 Radio 2 ``` ```javascript export default { data() { return { radio: '1' } } }; ``` #### Disabled ```html Radio 1 Radio 2 ``` #### Custom Color ```html Radio ``` #### Inside a Cell ```html ``` ### Radio API | Attribute | Description | Type | Default | |------|------|------|------| | name | Radio name | `any` | - | | disabled | Whether to disable radio | `Boolean` | `false` | | label-disabled | Whether to disable label click | `Boolean` | `false` | | label-position | Can be set to `left` | `String` | `right` | | checked-color | Checked color | `String` | `#1989fa` | - | ### RadioGroup API | Attribute | Description | Type | Default | |------|------|------|------| | v-model | Name of checked radio | `any` | - | | disabled | Diable all radios | `Boolean` | `false` | ### RadioGroup Event | Event | Description | Parameters | |------|------|------| | change | Triggered when value changed | current value |