# Checkboxes


To use the custom checkbox controls you need to import the custom made component:
import {Checkbox} from 'src/components'
1

Global usage

Vue.component(Checkobx.name, Checkbox)
1

For local usage

export default {
  components: {
    [Checkbox.name]: Checkbox
  }
}
1
2
3
4
5

# Custom checkboxes

<template>
    <div>
       <n-checkbox v-model="unchecked">Unchecked</n-checkbox>
       <n-checkbox  v-model="checked">Checked</n-checkbox>

       <n-checkbox :disabled="true" :checked="false">Disabled unchecked</n-checkbox>
       <n-checkbox :disabled="true" :checked="true">Disabled checked</n-checkbox>
    </div>
</template>

<script>
  export default {
    data () {
        return {
          unchecked: false,
          checked: true
        }
      }
  }
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

# Checkbox Props

# Checkbox Events

Event Name Description Parameters
input triggers when the binding value changes the updated value

# Slots

Name Description
default Default content for checkbox