vb-input
v1.0.2
Published
Vue reuseable input component dor Vue3 and Nuxt3.
Downloads
2
Maintainers
Readme
vb-input
Vue 3 input component.
Support Vue3 and Nuxt3 and type-safe. Demo
Documentation
Check out docs at docs.
Types
- text
- number
- password
- tel
- search
- textarea
Installation
npm i vb-input
Import to component
<template>
<VBInput :type="'text'" placeholder="name" label="Your Name" v-model="name" />
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue';
import VBInput from 'vb-input';
export default defineComponent({
components: {
VBInput,
},
setup() {
const name = ref('');
return { name };
},
});
</script>