We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2365895 commit e89a618Copy full SHA for e89a618
components/switch/README.md
@@ -15,6 +15,12 @@ var vm = new Vue({
15
})
16
```
17
18
+> or use default slot for label
19
+
20
+```html
21
+<mdc-switch v-model="checked">{{Label}}</mdc-switch>
22
+```
23
24
### props
25
26
| props | Type | Default | Description |
components/switch/mdc-switch.vue
@@ -9,7 +9,7 @@
9
<div class="mdc-switch__knob"></div>
10
</div>
11
12
- <label :for="_uid" v-if="label">{{ label }}</label>
+ <label ref="label" :for="_uid"><slot>{{label}}</slot></label>
13
14
</template>
0 commit comments