<m-switch v-model="switchValue" />
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.