tags-input
Features:
- I said
<input type="tags">
should be a thing. - With full keyboard, mouse and focus support.
- Works with HTML5
pattern
andplaceholder
attributes, too! - Native
change
andinput
("live" change) events. - Using preact? (or react?) There's a wrapper called preact-token-input
- Works in modern browsers and IE10+
Screenshot:
Examples
It's easy to use! In addition to the example code, you'll also need to
include tags-input.css
- I didn't bundle it because that's a bit gross.
CommonJS:
var tagsInput = ; // create a new tag input:var tags = document;tags;;documentbody; // enhance an existing input:; // or just enhance all tag inputs on the page:forEach;
HTML Example:
Add some