Pillbox input component, a fork of tomerdmnt/tag-input.
$ component install component/pillbox
varPillbox=require('pillbox');varinput=Pillbox(document.getElementById('tags'))input.on('add',function(tag){console.log(tag+' added');});input.on('remove',function(tag){console.log(tag+' removed');});add(tag)remove(tag)
Initialize with the given input element and options. Available options include:
lowercase: all added tags get converted to lowercase.allowSpace: allow spaces in tags.space: inverse of allowSpace (backwards support).
Add tag string if it does not already exist.
Remove tag string if it exists.
Set / Get the tags.
MIT
