<!--
  Copyright IBM Corp. 2016, 2018

  This source code is licensed under the Apache-2.0 license found in the
  LICENSE file in the root directory of this source tree.
-->

<div>
  {{#each tags}}
  <button class="{{@root.prefix}}--tag {{@root.prefix}}--tag--{{type}}">
    <span class="{{@root.prefix}}--tag__label">{{label}}</span>
  </button>
  {{/each}}
</div>

<div>
  {{#if filter}}
  <div class="{{@root.prefix}}--tag {{@root.prefix}}--tag--filter" title="Clear filter">
    <span class="{{@root.prefix}}--tag__label">filter</span>
    <button class="{{@root.prefix}}--tag__close-icon">
      {{ carbon-icon 'Close16' }}
    </button>
  </div>
  {{/if}}
</div>
