Skip to content

sergor5/vue-tags-input

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-tags-input

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

ℹ️ Forked from @johmun/vue-tags-input which seems no longer maintained.

Demo & Docs(⚠️ → @johmun/vue-tags-input)

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

About

A tags input component for VueJS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.7%
  • Vue 16.7%
  • SCSS 3.6%