Dead simple Vue.js tag editor component
https://htmlpreview.github.io/?https://github.com/vuejs-tips/v-tag-editor/master/demo/index.html
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>
yarn add v-tag-editor
npm i --save v-tag-editor
This project is licensed under MIT License