UNPKG

material-components-vue

Version:
30 lines (20 loc) 509 B
## Switch ### Markup ```html <m-switch v-model="switchValue" /> ``` ### Script ```javascript data() { return { switchValue: null } } ``` ### Props | Prop | Type | Default | Required | Description | |------|------|---------|----------|-------------| | checked | Boolean | - | false | switch state | | disabled | Boolean | - | false | whether the switch should be disabled | ### Reference - https://github.com/material-components/material-components-web/tree/master/packages/mdc-switch