material-components-vue
Version:
Material Design components for Vue.js
31 lines (21 loc) • 587 B
Markdown
switch v-model="switchValue" />
```
```javascript
data() {
return {
switchValue: false
}
}
```
| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| checked | Boolean | - | false | switch state, can be `v-model` |
| disabled | Boolean | - | false | whether the switch should be disabled |
Non prop attributes are mapped to the inner input element.
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-switch
```html
<m-