Skip to content

mikemaccana/tags-input

 
 

Repository files navigation

tags-input

NPM Version

Join the chat at https://gitter.im/developit/tags-input

Features

  • I said <input type="tags"> should be a thing.
  • With full keyboard and mouse support.
  • Works with HTML5 pattern and placeholder attributes, too!
  • Native change and input ("live" change) events.

Screenshot

screenshot

JSFiddle Demo

Usage

It's an npm module!

npm install --save tags-input

Then, in your JavaScript:

var tagsInput = require('tags-input');

var tags = document.createElement('input');
tags.setAttribute('type', 'tags');
tagsInput(tags);
document.body.appendChild(tags);

After loading the the npm module, you'll also need to include tags-input.css.

About

<input type="tags"> like magic

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 80.2%
  • CSS 19.8%