{"id":13677888,"url":"https://github.com/simoebenhida/vue-tags","last_synced_at":"2026-04-11T07:30:17.051Z","repository":{"id":51840324,"uuid":"122553031","full_name":"simoebenhida/vue-tags","owner":"simoebenhida","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-07T01:16:03.000Z","size":673,"stargazers_count":12,"open_issues_count":4,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T02:07:05.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simoebenhida.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-23T00:35:57.000Z","updated_at":"2020-07-17T14:01:09.000Z","dependencies_parsed_at":"2023-01-23T14:30:42.584Z","dependency_job_id":null,"html_url":"https://github.com/simoebenhida/vue-tags","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simoebenhida%2Fvue-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simoebenhida%2Fvue-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simoebenhida%2Fvue-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simoebenhida%2Fvue-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simoebenhida","download_url":"https://codeload.github.com/simoebenhida/vue-tags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239985713,"owners_count":19729512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T13:00:48.273Z","updated_at":"2026-04-11T07:30:16.990Z","avatar_url":"https://github.com/simoebenhida.png","language":"Vue","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Vue-Tags\n\nA Flexible Vue.js 2 input Tag component where you can edit wathever you like related to HTML/CSS.\n\n## Installation :\n\n```javascript\nnpm install vue-tags\n```\n\n## Getting Started\n\nIn your script entry point:\n\n```html\n\u003cdiv id=\"app\"\u003e\n\n  \u003cinput-tags v-model=\"tags\"\u003e\n    \u003cdiv class=\"tags-input\"\n            slot-scope=\"{tag,removeTag,inputEventHandlers,inputBindings }\"\u003e\n            \u003cspan v-for=\"tag in tags\"\n              class=\"tags-input-tag\"\u003e\n              \u003cspan\u003e{{ tag }}\u003c/span\u003e\n              \u003cbutton type=\"button\" class=\"tags-input-remove\"\n                v-on:click=\"removeTag(tag)\"\n              \u003e\u0026times;\n             \u003c/button\u003e\n            \u003c/span\u003e\n            \u003cinput\n              class=\"tags-input-text\"  placeholder=\"Add tag...\"\n              v-on=\"inputEventHandlers\"\n              v-bind=\"inputBindings\"\n            \u003e\n          \u003c/div\u003e\n   \u003c/input-tags\u003e\n\n\u003c/div\u003e\n\nwindow.Vue = require(\"vue\");\n\nimport VueTags from \"vue-tags\";\n\n//Vue.component(\"input-tags\", VueTags); If you want a global Component\n\nconst app = new Vue({\n  el: \"#app\",\n  components: {\n    VueTags\n  },\n  data: {\n    tags: ['Laravel','Vuejs'],\n  }\n});\n```\n\n## Usage\n\nJust add the tags as a v-model and follow the code above just don't change the vuejs attributes and the others is your choice do wathever you want with them.\n\n### Props\n\nBy Default The tag is `added` when you click the `Enter Key` but you can customize it by adding `addKey` prop with array of KeyCodes of your choice.\nYou can have it \u003ca href=\"http://keycode.info/\"\u003ehere\u003c/a\u003e.\nFor Example `['188','13']` for Comma `,` and `Enter Key`\n\n```html\n\u003cdiv id=\"app\"\u003e\n\n  \u003cinput-tags v-model=\"tags\" add-key=\"['188','13']\"\u003e\n    \u003cdiv class=\"tags-input\"\n            slot-scope=\"{tag,removeTag,inputEventHandlers,inputBindings }\"\u003e\n            \u003cspan v-for=\"tag in tags\"\n              class=\"tags-input-tag\"\u003e\n              \u003cspan\u003e{{ tag }}\u003c/span\u003e\n              \u003cbutton type=\"button\" class=\"tags-input-remove\"\n                v-on:click=\"removeTag(tag)\"\n              \u003e\u0026times;\n             \u003c/button\u003e\n            \u003c/span\u003e\n            \u003cinput\n              class=\"tags-input-text\"  placeholder=\"Add tag...\"\n              v-on=\"inputEventHandlers\"\n              v-bind=\"inputBindings\"\n            \u003e\n          \u003c/div\u003e\n   \u003c/input-tags\u003e\n\n\u003c/div\u003e\n\nconst app = new Vue({\n  el: \"#app\",\n  components: {\n    VueTags\n  },\n  data: {\n    tags: ['Laravel','Vuejs'],\n  }\n});\n```\n\nBy Default The tag is `deleted` when you click `delete Key` but you can customize it by adding `deleteKey` prop with array of KeyCodes of your choice.\nYou can have it \u003ca href=\"http://keycode.info/\"\u003ehere\u003c/a\u003e.\nFor Example `['13']` for `Enter key`\nNow When we click `Enter` we delete the tag\n```html\n\u003cdiv id=\"app\"\u003e\n\n  \u003cinput-tags v-model=\"tags\" delete-key=\"['13']\"\u003e\n    \u003cdiv class=\"tags-input\"\n            slot-scope=\"{tag,removeTag,inputEventHandlers,inputBindings }\"\u003e\n            \u003cspan v-for=\"tag in tags\"\n              class=\"tags-input-tag\"\u003e\n              \u003cspan\u003e{{ tag }}\u003c/span\u003e\n              \u003cbutton type=\"button\" class=\"tags-input-remove\"\n                v-on:click=\"removeTag(tag)\"\n              \u003e\u0026times;\n             \u003c/button\u003e\n            \u003c/span\u003e\n            \u003cinput\n              class=\"tags-input-text\"  placeholder=\"Add tag...\"\n              v-on=\"inputEventHandlers\"\n              v-bind=\"inputBindings\"\n            \u003e\n          \u003c/div\u003e\n   \u003c/input-tags\u003e\n\n\u003c/div\u003e\n\nconst app = new Vue({\n  el: \"#app\",\n  components: {\n    VueTags\n  },\n  data: {\n    tags: ['Laravel','Vuejs'],\n  }\n});\n```\n\n## Contributing\n\nYou are more than welcome to contribute to this repo with anything you think is useful. fixes are more than welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimoebenhida%2Fvue-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimoebenhida%2Fvue-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimoebenhida%2Fvue-tags/lists"}