A tags input component for VueJs with autocompletion, custom validation, templating and much more.
npm install @johmun/vue-tags-input
<script src="https://unpkg.com/@johmun/vue-tags-input/dist/vue-tags-input.js"></script>
<template>
<div>
<vue-tags-input
v-model="tag"
:tags="tags"
@tags-changed="newTags => tags = newTags"
/>
</div>
</template>
<script>
import VueTagsInput from '@johmun/vue-tags-input';
export default {
components: {
VueTagsInput,
},
data() {
return {
tag: '',
tags: [],
};
},
};
</script>
Author: JohMun
Live Demo: http://www.vue-tags-input.com/#/
Download Link: https://github.com/JohMun/vue-tags-input/archive/master.zip
Official Website: https://github.com/JohMun/vue-tags-input
☞ JavaScript Programming Tutorial Full Course for Beginners
☞ Learn JavaScript - Become a Zero to Hero
☞ E-Commerce JavaScript Tutorial - Shopping Cart from Scratch