naive-ui/demo/documentation/components/checkbox/enUS/basic.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

409 B

Basic

<n-checkbox v-model="value">Checkbox</n-checkbox>
<n-checkbox v-model="value"/>
<n-checkbox v-model="value" :disabled="disabled">Checkbox</n-checkbox>
<n-button @click="disabled = !disabled" size="small">Disabled</n-button>
export default {
  data() {
    return {
      value: false,
      disabled: true
    }
  }
}
.n-checkbox, .n-button {
  margin: 0 12px 8px 0;
}