naive-ui/demo/documentation/components/switch/enUS/basic.md
2019-09-29 19:07:16 +08:00

19 lines
178 B
Markdown

# Basic
```html
<n-switch
v-model="active"
/>
<n-switch
v-model="active"
disabled
/>
```
```js
export default {
data () {
return {
active: false
}
}
}
```