v-tag-list
v0.0.2
Published
Vue.js tiny tag list view component
Downloads
15
Readme
Vue Tag List
Tiny tag list view for Vue.js
Demo
https://htmlpreview.github.io/?https://github.com/vuejs-tips/v-tag-list/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-list v-model="tags" theme="semantic-ui"></v-tag-list> {{tags}}
</div>
</template>
<script>
import VTagList from 'v-tag-list'
export default {
components: {VTagList},
data () {
return {
tags: ['php', 'ruby', 'javascript', 'python', 'java', 'c#', 'scala', 'closure']
}
}
}
</script>
Installation
Using yarn
yarn add v-tag-list
Using npm
npm i --save v-tag-list
Contribution
You're free to contribute to this project by submitting issues and/or pull requests. This project is test-driven, so keep in mind that every change and new feature should be covered by tests. Your name will be added to the hall of fame ;)
License
This project is licensed under MIT License
Build inspired by vue-plugin-template