vb-checkbox
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

vb-checkbox

Version

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>

Package Sidebar

Install

npm i vb-checkbox

Weekly Downloads

5

Version

1.0.1

License

none

Unpacked Size

21 kB

Total Files

8

Last publish

Collaborators

  • ehsan_shv