{"id":26472638,"url":"https://github.com/hellomahe/v-tag-suggestion","last_synced_at":"2025-03-19T21:35:30.345Z","repository":{"id":57389882,"uuid":"124660230","full_name":"hellomahe/v-tag-suggestion","owner":"hellomahe","description":"A simple tag component with typeahead","archived":false,"fork":false,"pushed_at":"2018-03-22T18:32:12.000Z","size":9739,"stargazers_count":39,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T09:24:47.442Z","etag":null,"topics":["autocomplete","tags","vue","vuejs-components","vuejs2"],"latest_commit_sha":null,"homepage":"","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/hellomahe.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-03-10T13:52:01.000Z","updated_at":"2023-12-01T07:13:40.000Z","dependencies_parsed_at":"2022-09-02T10:50:37.742Z","dependency_job_id":null,"html_url":"https://github.com/hellomahe/v-tag-suggestion","commit_stats":null,"previous_names":["i-mahe/v-tag-suggestion"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomahe%2Fv-tag-suggestion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomahe%2Fv-tag-suggestion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomahe%2Fv-tag-suggestion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomahe%2Fv-tag-suggestion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellomahe","download_url":"https://codeload.github.com/hellomahe/v-tag-suggestion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244250942,"owners_count":20423249,"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":["autocomplete","tags","vue","vuejs-components","vuejs2"],"created_at":"2025-03-19T21:35:29.762Z","updated_at":"2025-03-19T21:35:30.339Z","avatar_url":"https://github.com/hellomahe.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# v-tag-suggestion\n\nA simple tag component with typeahead ⌨️\n\n![](http://res.cloudinary.com/mahe/image/upload/v1520916559/v-tag-suggestion.gif)\n\n\nInstall via npm\n\n``` bash \nnpm install vue-tag-suggestion\n```\n\n##### Import and register where you want to use\n\n``` bash\nimport vue-tag-suggestion from 'vue-tag-suggestion'\n\ncomponents: {\n      vue-tag-suggestion\n    }\n ```\n    \n##### Props\n\n  tags(Array of objects) - Selected tags \n  \n  suggestions(Array of objects) - Suggestions\n\n```bash \n  props:{\n    tags:{\n      type:Array,\n      required:true\n    },\n    suggestions:{\n      type:Array,\n      required:false,\n      default:() =\u003e {\n        return[]\n      }\n    },\n    suggestionLength:{\n      type:Number,\n      required:false,\n      default:10\n    }\n  }\n  ```\n  Note: Every object has to have a name property.\n\n# Example\n``` bash\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n\u003ctag\n :tags=\"tags\" :suggestions=\"suggestion\" :suggestionLength=\"6\"/\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport tag from \"../v-tag-suggestion.js\"\n\nexport default {\n  name: \"TagInput\",\n  data() {\n    return {\n      tags: [\n        {\n          name: \"hello\"\n        }\n      ],\n      suggestions: [\n        {\n          name: \"This\"\n        },\n        {\n          name: \"is\"\n        },\n        {\n          name: \"a\"\n        },\n        {\n          name: \"new\"\n        },\n        {\n          name: \"vue\"\n        },\n        {\n          name: \"tag\"\n        },\n        {\n          name: \"component\"\n        },\n        {\n          name: \"which\"\n        },\n        {\n          name: \"will\"\n        },\n        {\n          name: \"give\"\n        },\n        {\n          name: \"auto\"\n        },\n        {\n          name: \"suggestion\"\n        }\n      ],\n      msg: \"Welcome to Your Vue.js App\"\n    };\n  },\n  components: {\n    tag\n  }\n};\n\u003c/script\u003e\n\n\u003c!-- Add \"scoped\" attribute to limit CSS to this component only --\u003e\n\u003cstyle scoped\u003e\nh1,\nh2 {\n  font-weight: normal;\n}\nul {\n  list-style-type: none;\n  padding: 0;\n}\nli {\n  display: inline-block;\n  margin: 0 10px;\n}\na {\n  color: #42b983;\n}\n\u003c/style\u003e\n```\n\n#TODO\n-~~Dynamic length for auto-suggestions as a prop~~\n- Separators as a prop\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellomahe%2Fv-tag-suggestion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellomahe%2Fv-tag-suggestion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellomahe%2Fv-tag-suggestion/lists"}