Skip to content

yellowfeather/vue-tags-input

 
 

Repository files navigation

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: 25kb minified | gzipped 8kb
  • Autocompletion
  • Many customization options
  • Own templates
  • Delete tags on backslash
  • Add tags on paste
  • Examples & Docs

Getting Started

Install:

npm install @johmun/vue-tags-input --save

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) 2018 Johannes Munari

About

A tags input component for VueJs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 52.4%
  • Vue 44.7%
  • HTML 2.9%