material-components-vue
Version:
Material Design components for Vue.js
34 lines (25 loc) • 783 B
Markdown
"group" value="option1" v-model="radioGroup" />
<m-radio name="group" value="option2" v-model="radioGroup" />
<m-radio name="group" value="option3" v-model="radioGroup" />
```
```javascript
data() {
return {
radioGroup: ''
}
}
```
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| checked | Boolean | false | whether the radio is selected |
| disabled | Boolean | false | disabled radio |
| value | String | '' | value of radio (will be v-modeled) |
| name | String | '' | radio group name |
Non prop attributes are mapped to the inner input element.
### Reference
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-radio
```html
<m-radio name=