@johmun/vue-tags-input

A tags input component for VueJS with autocompletion, custom validation, templating and much more
878,155 951
Install
npm install @johmun/vue-tags-input
Latest Version:2.1.0
Vue:2
License:MIT
Last Updated:Feb 16, 2024
Links: GitHub  ·  npm
Maintainer: johmun

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

Related Packages

@frk/vue-tags-input

A tags input component for VueJS with autocompletion, custom validation, templat...

2,671 0
@sipec/vue3-tags-input

A tags input component for Vue 3 with autocompletion, custom validation, templat...

342,472 23
@wslyhbb/vue3-tags-input

A tags input component for Vue 3 with autocompletion, custom validation, templat...

173,275 0
@savingsunited/vue3-tags-input

A tags input component for Vue 3 with autocompletion, custom validation, templat...

4,158 0
@tkmam1x/vue3-tags-input

A tags input component for Vue 3 with autocompletion, custom validation, templat...

1,869 23

Version History

Version Released License
2.1.0 MIT
2.0.2 MIT
2.0.1 MIT
2.0.0 MIT
1.6.0 MIT