{"id":13657755,"url":"https://github.com/developit/tags-input","last_synced_at":"2025-04-04T17:07:52.424Z","repository":{"id":25556152,"uuid":"28989245","full_name":"developit/tags-input","owner":"developit","description":":bookmark: \u003cinput type=\"tags\"\u003e like magic","archived":false,"fork":false,"pushed_at":"2019-10-02T21:55:38.000Z","size":37,"stargazers_count":334,"open_issues_count":12,"forks_count":47,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T16:08:21.442Z","etag":null,"topics":["dom","dom-components","input","input-method","tag","tag-input","tagging"],"latest_commit_sha":null,"homepage":"http://jsfiddle.net/developit/d5w4jpxq/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-08T22:27:31.000Z","updated_at":"2025-01-24T08:52:37.000Z","dependencies_parsed_at":"2022-08-24T06:51:06.884Z","dependency_job_id":null,"html_url":"https://github.com/developit/tags-input","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Ftags-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Ftags-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Ftags-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Ftags-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/tags-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217183,"owners_count":20903009,"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":["dom","dom-components","input","input-method","tag","tag-input","tagging"],"created_at":"2024-08-02T05:00:50.417Z","updated_at":"2025-04-04T17:07:52.396Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"tags-input\n==========\n\n[![NPM Version](http://img.shields.io/npm/v/tags-input.svg?style=flat)](https://www.npmjs.org/package/tags-input)\n[![Bower Version](http://img.shields.io/bower/v/tags-input.svg?style=flat)](http://bower.io/search/?q=tags-input)\n[![Gitter Room](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/developit/tags-input)\n\n**Features:**\n\n- I said `\u003cinput type=\"tags\"\u003e` should be a thing.\n- With full keyboard, mouse and focus support.\n- Works with HTML5 `pattern` and `placeholder` attributes, too!\n- Native [`change`](https://developer.mozilla.org/en-US/docs/Web/Events/change) and [`input`](https://developer.mozilla.org/en-US/docs/Web/Events/input) _(\"live\" change)_ events.\n- Using [preact](https://github.com/developit/preact)? (or react?) There's a wrapper called [preact-token-input](https://github.com/developit/preact-token-input)\n- Works in modern browsers and IE10+\n\n**Screenshot:**\n\n\u003e ![screenshot](http://cl.ly/image/3M3U1h1s2y0v/tags-screenshot.png)\n\n[JSFiddle Demo](http://jsfiddle.net/developit/d5w4jpxq/)\n\n---\n\n\nExamples\n========\n\nIt's easy to use! In addition to the example code, you'll also need to\ninclude `tags-input.css` - I didn't bundle it because that's a bit gross.\n\n**CommonJS:**\n\n```js\nvar tagsInput = require('tags-input');\n\n// create a new tag input:\nvar tags = document.createElement('input');\ntags.setAttribute('type', 'tags');\ntagsInput(tags);\ndocument.body.appendChild(tags);\n\n// enhance an existing input:\ntagsInput(document.querySelector('input[type=\"tags\"]'));\n\n// or just enhance all tag inputs on the page:\n[].forEach.call(document.querySelectorAll('input[type=\"tags\"]'), tagsInput);\n```\n\n**HTML Example:**\n\n```html\n\u003clink rel=\"stylesheet\" href=\"tags-input.css\"\u003e\n\u003cscript src=\"tags-input.js\"\u003e\u003c/script\u003e\n\n\u003cform\u003e\n\t\u003clabel\u003e\n\t\tAdd some\n\t\t\u003cinput name=\"hashtags\" type=\"tags\" pattern=\"^#\" placeholder=\"#hashtags\"\u003e\n\t\u003c/label\u003e\n\u003c/form\u003e\n\n\u003cscript\u003e[].forEach.call(document.querySelectorAll('input[type=\"tags\"]'), tagsInput);\u003c/script\u003e\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Ftags-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Ftags-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Ftags-input/lists"}