Tag

Tag

Red Magenta Purple Blue Cyan Teal Green Gray Cool-Gray Warm-Gray
Code:
<!--
  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 role="list">
  <span class="bx--tag bx--tag--red" role="listitem">
    <span class="bx--tag__label">Red</span>
  </span>
  <span class="bx--tag bx--tag--magenta" role="listitem">
    <span class="bx--tag__label">Magenta</span>
  </span>
  <span class="bx--tag bx--tag--purple" role="listitem">
    <span class="bx--tag__label">Purple</span>
  </span>
  <span class="bx--tag bx--tag--blue" role="listitem">
    <span class="bx--tag__label">Blue</span>
  </span>
  <span class="bx--tag bx--tag--cyan" role="listitem">
    <span class="bx--tag__label">Cyan</span>
  </span>
  <span class="bx--tag bx--tag--teal" role="listitem">
    <span class="bx--tag__label">Teal</span>
  </span>
  <span class="bx--tag bx--tag--green" role="listitem">
    <span class="bx--tag__label">Green</span>
  </span>
  <span class="bx--tag bx--tag--gray" role="listitem">
    <span class="bx--tag__label">Gray</span>
  </span>
  <span class="bx--tag bx--tag--cool-gray" role="listitem">
    <span class="bx--tag__label">Cool-Gray</span>
  </span>
  <span class="bx--tag bx--tag--warm-gray" role="listitem">
    <span class="bx--tag__label">Warm-Gray</span>
  </span>
</div>

<div role="list">
</div>

Tag filter

filter
Code:
<!--
  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 role="list">
</div>

<div role="list">
  <span class="bx--tag bx--tag--filter" title="Clear filter" tabindex="0" role="listitem">
    <span class="bx--tag__label">filter</span>
    <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" aria-label="Clear filter" width="16" height="16" viewBox="0 0 16 16" role="img"><path d="M12 4.7L11.3 4 8 7.3 4.7 4 4 4.7 7.3 8 4 11.3 4.7 12 8 8.7 11.3 12 12 11.3 8.7 8z"></path></svg>
  </span>
</div>

Documentation

SCSS

Mixins

Mixins specific to tag are located in src/components/tag/_mixins.scss.

Name Params Description
tag-theme $bg-color, $text-color Adds given background-color and text color