JohMun / vue-tags-input

A tags input component for VueJS
http://www.vue-tags-input.com
956 stars 138 forks source link
autocomplete javascript tags tagsinput vue-components vuejs

vue-tags-input

A tags input component for VueJS with autocompletion, custom validation, templating and much more

Demo & Docs

Features

Install

NPM

npm install @johmun/vue-tags-input

CDN

<script src="https://unpkg.com/@johmun/vue-tags-input/dist/vue-tags-input.js"></script>

Usage

<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>

License

MIT

Copyright (c) 2019 Johannes Munari