<script>var classifier = function(value) {
  switch(value){
    case 'hello':
      return 'hx-positive'
    case 'goodbye':
      return 'hx-negative'
  }
}

var tagInput = new hx.TagInput('#tag-input-2', classifier)
tagInput.add('hello', 'hx-positive')
tagInput.add('goodbye', 'hx-negative')
tagInput.add(['tag', 'tag2'])</script></div><div class="docs-example-code-body"><div class="example-code-section"><h3>HTML</h3><div class="qm-code-highlight-codeblock language-html"><pre><code class="qm-code-font"><spa