vb-checkbox
Vue 3 checkbox component.
Support Vue3, Nuxt3 and type-safe. Demo
Installation
npm i vb-checkbox
Import to component
<template>
<div><Checkbox :modelValue="check1" label="check1" /></div>
<div><Checkbox :modelValue="check2" label="check2" /></div>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue';
import Checkbox from 'vb-checkbox';
export default defineComponent({
components: {
Checkbox,
},
setup() {
const checked1 = ref(false);
const checked2 = ref(true);
return { check1, check2 };
},
});
</script>