✨ A Vue plugin for awesome tags ✨
The library vue-tags allows you to implement easily a list of tags in your Vue components.
npm i @ichbinkour/vue-tagsInside any of your components:
<template>
<vue-tags
:options="options"
@delete-tag="(newTags) => (options = newTags)"
closable
/>
</template><script>
import VueTags from "@ichbinkour/vue-tags"
data() {
return {
options: ['VueJs', 'vue', 'tags']
}
}
</script>| Props | Type | Description |
|---|---|---|
options |
Array |
Array of tags name of type |
closable |
Boolean - Default false |
Add an icon to close the tag |
| Methods | Description |
|---|---|
delete-tag() |
Executed method when the user click on the close icon |
Check on Github