naive-ui/demo/documentation/components/switch/enUS/basic.md

19 lines
178 B
Markdown
Raw Normal View History

2019-09-29 19:07:16 +08:00
# Basic
```html
<n-switch
v-model="active"
/>
<n-switch
v-model="active"
disabled
/>
```
```js
export default {
data () {
return {
active: false
}
}
}
```