Skip to main contentCarbon Design System

Tag

Tag

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

<div>
</div>

Tag 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>
</div>

<div>
  <button class="bx--tag bx--tag--filter" title="Clear filter">
    <span class="bx--tag__label">filter</span>
    <svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" aria-hidden="true"><path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path></svg>
  </button>
</div>