Skip to content

certsimple/tags-input

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A fork of tags-input

Slowly refactoring this module to add:

  • Plain CommonJS / ES2017 / SASS and eslint.
  • Unminified variables, code run through prettier.
  • Unit tests

Usage

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

// create a new tag input:
var tags = document.createElement('input');
tags.setAttribute('type', 'tags');
tagsInput(tags);
document.body.appendChild(tags);

// enhance an existing input:
tagsInput(document.querySelector('input[type="tags"]'));

// or just enhance all tag inputs on the page:
document.querySelectorAll('input[type="tags"]').forEach(function(element){
    tagsInput(element)
});

About

🔖 <input type="tags"> like magic

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.0%
  • CSS 10.0%