Forms
Tags
Lightweight, efficient Tags input component in Vanilla JS.
Requirements
// Css <link rel="stylesheet" href="css/vendor/tagify.css" /> // Javascript <script src="js/vendor/tagify.min.js"></script>
Example
Javascript
var tags = new Tagify(document.querySelector('#tagsBasic'));
Html
<div> <label class="form-label">Add Tags</label> <input value="Lefse, Fougasse" id="tagsBasic" data-whitelist="Lefse, Fougasse, Dorayaki, Barmbrack, Brioche, Arepa, Cozonac, Saffron Bun, Eggette, Himbasha, Flatbread"/> </div>
More Examples
You may find more examples in
Interface.Forms.Controls.Tags.html
file which is initialized by js/forms/controls.tag.js.