0.1.6 • Published 5 years ago

vue-tags-custom v0.1.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-tags-custom

Screenshot of Vue Tags

A fantastically simple tagging component for your Vue projects

Installation

npm install --save vue-tags-custom

Or

yarn add vue-tags-custom

Usage

Here's a sample implementation that initializes the component with a list of initial tags and suggestions list.

<template>
  <div>
    <VueTags
      :suggestions="tagList"
      :tags="tags"
      @tags-changed="newTags => tags = newTags"
    />
  </div>
</template>
<script>
import VueTags from 'vue-tags-custom'

export default {
  name: 'app',
  components: {
    VueTags
  },
  data() {
    return {
      tagList: [
        'Georgia',
        'Germany',
        'Gifu',
        'India',
        'Thailand',
        'Tóquio',
        'Russia'
      ],
      tags: []
    }
  }
}
</script>

License

MIT