v-tag-editor

0.0.1 • Public • Published

v-tag-editor

Note : All credits to author I just forked and republished this package to npm.

Dead simple Vue.js tag editor component

Demo

https://htmlpreview.github.io/?https://github.com/vuejs-tips/v-tag-editor/master/demo/index.html

Usage

Just bind an array of tags using v-model directive or value property.

There's a separator property default to use space, but you can change it to comma.

<template>
  <div>
    <v-tag-editor v-model="tags" theme="semantic-ui"></v-tag-list>
  </div>
</template>
 
<script>
import VTagEditor from 'v-tag-editor'
 
export default {
  components: {VTagEditor},
  data () {
    return {
      tags: ['php', 'ruby', 'javascript', 'python', 'java', 'c#', 'scala', 'closure']
    }
  }
}
</script> 

Installation

Using yarn

yarn add v-tag-editor

Using npm

npm i --save v-tag-editor

License

This project is licensed under MIT License

Readme

Keywords

Package Sidebar

Install

npm i v-tag-editor

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

8.5 kB

Total Files

3

Last publish

Collaborators

  • utopman