VueJs for tags input
vue-tags-input
VueJs for tags input.
Installation
-
Available through:
$ yarn add vue2-tags-input
$ npm install vue2-tags-input
-
For Modules
import tagsInput from "vue-tags-input";
import "vue-tags-input/dist/vue-tags-input.css";
Vue.use(tagsInput)
-
For
<script>
Include
<!-- CDNJS :: Vue (https://cdnjs.com/) -->
<script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.5.2/vue.min.js"></script>
<!-- Require js -->
<script src="vue-tags-input.min.js"></script>
<!-- Require css -->
<link href="vue-tags-input.css" rel="stylesheet">
<script>
Vue.component('tags-input', VueTagsInput.tagsInput);
</script>
Demo
HTML
<tags-input placeholder="Tags input"></tags-input>