Install
Install vue-tags-input with npmnpm i vue3-tags-input
Usage
<template>
<vue3-tags-input :tags="tags"
placeholder="enter some tags"
@on-tags-changed="handleChangeTag"/>
</template>
<script>
import { defineComponent } from 'vue';
import Vue3TagsInput from 'vue3-tags-input';
export default defineComponent({
name: 'BasicExample',
components: {
Vue3TagsInput
},
data() {
return {
tags: []
}
},
methods: {
handleChangeTag(tags) {
this.tags = tags;
},
}
});
</script>