@jack_reddico/vue tags input

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

Version: 1.0.5 Updated: 11/28/2019

By: sjmc11 License: MIT

Install

npm i @jack_reddico/vue-tags-input
yarn add @jack_reddico/vue-tags-input

Repository: https://github.com/sjmc11/vue-tags-input

CDNs

bundle.run: https://bundle.run/@jack_reddico/vue-tags-input

jsDelivr: https://cdn.jsdelivr.net/npm/@jack_reddico/vue-tags-input

unpkg: https://unpkg.com/@jack_reddico/vue-tags-input

vue-tags-input

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

Demo & Docs

Features

  • No dependencies
  • Custom validation rules
  • Hooks: Before adding, Before deleting ...
  • Edit tags after creation
  • Fast setup
  • Works with Vuex
  • Small size: 34kb minified (css included) | gzipped 9kb
  • Autocompletion
  • Many customization options
  • Own templates
  • Delete tags on backspace
  • Add tags on paste
  • Examples & Docs

Install

NPM

npm install @jack_reddico/vue-tags-input

CDN

<script src="https://unpkg.com/@jack_reddico/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 '@jack_reddico/vue-tags-input';

export default {
  components: {
    VueTagsInput,
  },
  data() {
    return {
      tag: '',
      tags: [],
    };
  },
};
</script>

License

MIT

Copyright (c) 2019 Jack C

Categories: Vue js