---
id: 'Label group'
beta: true
section: components
cssPrefix: pf-c-label-group
---## Examples

### Basic

```html
<div class="pf-c-label-group">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
    </ul>
  </div>
</div>

```

### Overflow

```html
<div class="pf-c-label-group">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <button class="pf-c-label pf-m-overflow" type="button">
          <span class="pf-c-label__content">3 more</span>
        </button>
      </li>
    </ul>
  </div>
</div>

```

### Overflow expanded

```html
<div class="pf-c-label-group">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-cyan">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-purple">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <button class="pf-c-label pf-m-overflow" type="button">
          <span class="pf-c-label__content">3 less</span>
        </button>
      </li>
    </ul>
  </div>
</div>

```

### Add label

```html
<div class="pf-c-label-group">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <button class="pf-c-label pf-m-add" type="button">
          <span class="pf-c-label__content">Add Label</span>
        </button>
      </li>
    </ul>
  </div>
</div>

```

### Category

```html
<div class="pf-c-label-group pf-m-category">
  <div class="pf-c-label-group__main">
    <span
      class="pf-c-label-group__label"
      aria-hidden="true"
      id="label-group-category-label"
    >Group label</span>
    <ul
      class="pf-c-label-group__list"
      role="list"
      aria-labelledby="label-group-category-label"
    >
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
    </ul>
  </div>
</div>

```

### Category removable

```html
<div class="pf-c-label-group pf-m-category">
  <div class="pf-c-label-group__main">
    <span
      class="pf-c-label-group__label"
      aria-hidden="true"
      id="label-group-category-removable-label"
    >Group label</span>
    <ul
      class="pf-c-label-group__list"
      role="list"
      aria-labelledby="label-group-category-removable-label"
    >
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-cyan">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 4
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-orange">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 5
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-red">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 6
          </span>
        </span>
      </li>
    </ul>
  </div>
  <div class="pf-c-label-group__close">
    <button
      class="pf-c-button pf-m-plain"
      type="button"
      aria-labelledby="label-group-category-removable-button label-group-category-removable-label"
      aria-label="Close label group"
      id="label-group-category-removable-button"
    >
      <i class="fas fa-times-circle" aria-hidden="true"></i>
    </button>
  </div>
</div>

```

### Vertical

```html
<div class="pf-c-label-group pf-m-vertical">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
    </ul>
  </div>
</div>

```

### Vertical overflow

```html
<div class="pf-c-label-group pf-m-vertical">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <button class="pf-c-label pf-m-overflow" type="button">
          <span class="pf-c-label__content">3 more</span>
        </button>
      </li>
    </ul>
  </div>
</div>

```

### Vertical overflow expanded

```html
<div class="pf-c-label-group pf-m-vertical">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-cyan">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-purple">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <button class="pf-c-label pf-m-overflow" type="button">
          <span class="pf-c-label__content">3 less</span>
        </button>
      </li>
    </ul>
  </div>
</div>

```

### Vertical category

```html
<div class="pf-c-label-group pf-m-vertical pf-m-category">
  <div class="pf-c-label-group__main">
    <span
      class="pf-c-label-group__label"
      aria-hidden="true"
      id="label-group-vertical-category-label"
    >Group label</span>
    <ul
      class="pf-c-label-group__list"
      role="list"
      aria-labelledby="label-group-vertical-category-label"
    >
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
    </ul>
  </div>
</div>

```

### Vertical category removable

```html
<div class="pf-c-label-group pf-m-vertical pf-m-category">
  <div class="pf-c-label-group__main">
    <span
      class="pf-c-label-group__label"
      aria-hidden="true"
      id="label-group-vertical-category-removable-label"
    >Group label</span>
    <ul
      class="pf-c-label-group__list"
      role="list"
      aria-labelledby="label-group-vertical-category-removable-label"
    >
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label">
          <span class="pf-c-label__content">Label</span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue">
          <span class="pf-c-label__content">Label 2</span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">Label 3</span>
        </span>
      </li>
    </ul>
  </div>
  <div class="pf-c-label-group__close">
    <button
      class="pf-c-button pf-m-plain"
      type="button"
      aria-labelledby="label-group-vertical-category-removable-button label-group-vertical-category-removable-label"
      aria-label="Close label group"
      id="label-group-vertical-category-removable-button"
    >
      <i class="fas fa-times-circle" aria-hidden="true"></i>
    </button>
  </div>
</div>

```

In addition to the JavaScript management of [editable labels](/components/label#editable), dynamic label groups also need:

-   `.pf-c-label-group.pf-m-editable` onClick event should (excluding labels within) set focus on `.pf-c-label-group__textarea`

### Editable labels, dynamic label group

```html
<div class="pf-c-label-group pf-m-editable">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue pf-m-editable">
          <button
            class="pf-c-label__content"
            id="editable-labels-editable-group-example-editable-label-editable-1-editable-content"
            currvalue="          Editable label 1
        "
            aria-label="Editable text"
          >Editable label 1</button>

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="editable-labels-editable-group-example-editable-label-editable-1-button"
            aria-label="Remove"
            aria-labelledby="editable-labels-editable-group-example-editable-label-editable-1-button editable-labels-editable-group-example-editable-label-editable-1-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue pf-m-editable">
          <button
            class="pf-c-label__content"
            id="editable-labels-editable-group-example-editable-label-editable-2-editable-content"
            currvalue="          Editable label 2
        "
            aria-label="Editable text"
          >Editable label 2</button>

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="editable-labels-editable-group-example-editable-label-editable-2-button"
            aria-label="Remove"
            aria-labelledby="editable-labels-editable-group-example-editable-label-editable-2-button editable-labels-editable-group-example-editable-label-editable-2-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue pf-m-editable">
          <button
            class="pf-c-label__content"
            id="editable-labels-editable-group-example-editable-label-editable-3-editable-content"
            currvalue="          Editable label 3
        "
            aria-label="Editable text"
          >Editable label 3</button>

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="editable-labels-editable-group-example-editable-label-editable-3-button"
            aria-label="Remove"
            aria-labelledby="editable-labels-editable-group-example-editable-label-editable-3-button editable-labels-editable-group-example-editable-label-editable-3-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item pf-m-textarea">
        <textarea
          class="pf-c-label-group__textarea"
          rows="1"
          tabindex="0"
          aria-label="New label"
        ></textarea>
      </li>
    </ul>
  </div>
</div>

```

### Editable labels, label active, dynamic label group

```html
<div class="pf-c-label-group pf-m-editable">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue pf-m-editable">
          <button
            class="pf-c-label__content"
            id="editable-labels-label-active-editable-group-example-editable-label-default-1-editable-content"
            currvalue="          Editable label 1
        "
            aria-label="Editable text"
          >Editable label 1</button>

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="editable-labels-label-active-editable-group-example-editable-label-default-1-button"
            aria-label="Remove"
            aria-labelledby="editable-labels-label-active-editable-group-example-editable-label-default-1-button editable-labels-label-active-editable-group-example-editable-label-default-1-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue pf-m-editable">
          <button
            class="pf-c-label__content"
            id="editable-labels-label-active-editable-group-example-editable-label-default-2-editable-content"
            currvalue="          Editable label 2
        "
            aria-label="Editable text"
          >Editable label 2</button>

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="editable-labels-label-active-editable-group-example-editable-label-default-2-button"
            aria-label="Remove"
            aria-labelledby="editable-labels-label-active-editable-group-example-editable-label-default-2-button editable-labels-label-active-editable-group-example-editable-label-default-2-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span
          class="pf-c-label pf-m-blue pf-m-active pf-m-editable pf-m-editable-active"
        >
          <input
            class="pf-c-label__content"
            id="editable-labels-label-active-editable-group-example-editable-label-active-editable-content"
            type="text"
            value="          Editable label 3, active
        "
            aria-label="Editable text"
          />

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="editable-labels-label-active-editable-group-example-editable-label-active-button"
            aria-label="Remove"
            aria-labelledby="editable-labels-label-active-editable-group-example-editable-label-active-button editable-labels-label-active-editable-group-example-editable-label-active-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item pf-m-textarea">
        <textarea
          class="pf-c-label-group__textarea"
          rows="1"
          tabindex="0"
          aria-label="New label"
        ></textarea>
      </li>
    </ul>
  </div>
</div>

```

### Static labels, dynamic label group

```html
<div class="pf-c-label-group pf-m-editable">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">Static label 1</span>
          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="static-labels-dynamic-label-group-example-editable-label-static-1-button"
            aria-label="Remove"
            aria-labelledby="static-labels-dynamic-label-group-example-editable-label-static-1-button static-labels-dynamic-label-group-example-editable-label-static-1-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">Static label 2</span>
          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="static-labels-dynamic-label-group-example-editable-label-static-2-button"
            aria-label="Remove"
            aria-labelledby="static-labels-dynamic-label-group-example-editable-label-static-2-button static-labels-dynamic-label-group-example-editable-label-static-2-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">Static label 3</span>
          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="static-labels-dynamic-label-group-example-editable-label-static-3-button"
            aria-label="Remove"
            aria-labelledby="static-labels-dynamic-label-group-example-editable-label-static-3-button static-labels-dynamic-label-group-example-editable-label-static-3-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item pf-m-textarea">
        <textarea
          class="pf-c-label-group__textarea"
          rows="1"
          tabindex="0"
          aria-label="New label"
        ></textarea>
      </li>
    </ul>
  </div>
</div>

```

### Mixed labels (static / editable), dynamic label group

```html
<div class="pf-c-label-group pf-m-editable">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">Static label 1</span>
          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="mixed-labels-dynamic-label-group-example-editable-label-static-1-button"
            aria-label="Remove"
            aria-labelledby="mixed-labels-dynamic-label-group-example-editable-label-static-1-button mixed-labels-dynamic-label-group-example-editable-label-static-1-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-green">
          <span class="pf-c-label__content">Static label 2</span>
          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="mixed-labels-dynamic-label-group-example-editable-label-static-2-button"
            aria-label="Remove"
            aria-labelledby="mixed-labels-dynamic-label-group-example-editable-label-static-2-button mixed-labels-dynamic-label-group-example-editable-label-static-2-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue pf-m-editable">
          <button
            class="pf-c-label__content"
            id="mixed-labels-dynamic-label-group-example-editable-label-dynamic-1-editable-content"
            currvalue="          Dynamic, editable label 1
        "
            aria-label="Editable text"
          >Dynamic, editable label 1</button>

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="mixed-labels-dynamic-label-group-example-editable-label-dynamic-1-button"
            aria-label="Remove"
            aria-labelledby="mixed-labels-dynamic-label-group-example-editable-label-dynamic-1-button mixed-labels-dynamic-label-group-example-editable-label-dynamic-1-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue pf-m-editable">
          <button
            class="pf-c-label__content"
            id="mixed-labels-dynamic-label-group-example-editable-label-dynamic-2-editable-content"
            currvalue="          Dynamic, editable label 2
        "
            aria-label="Editable text"
          >Dynamic, editable label 2</button>

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="mixed-labels-dynamic-label-group-example-editable-label-dynamic-2-button"
            aria-label="Remove"
            aria-labelledby="mixed-labels-dynamic-label-group-example-editable-label-dynamic-2-button mixed-labels-dynamic-label-group-example-editable-label-dynamic-2-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-blue pf-m-active pf-m-editable">
          <button
            class="pf-c-label__content"
            id="mixed-labels-dynamic-label-group-example-editable-label-dynamic-3-editable-content"
            currvalue="          Dynamic, editable label 3
        "
            aria-label="Editable text"
          >Dynamic, editable label 3</button>

          <button
            class="pf-c-button pf-m-plain"
            type="button"
            id="mixed-labels-dynamic-label-group-example-editable-label-dynamic-3-button"
            aria-label="Remove"
            aria-labelledby="mixed-labels-dynamic-label-group-example-editable-label-dynamic-3-button mixed-labels-dynamic-label-group-example-editable-label-dynamic-3-text"
          >
            <i class="fas fa-times" aria-hidden="true"></i>
          </button>
        </span>
      </li>
      <li class="pf-c-label-group__list-item pf-m-textarea">
        <textarea
          class="pf-c-label-group__textarea"
          rows="1"
          tabindex="0"
          aria-label="New label"
        ></textarea>
      </li>
    </ul>
  </div>
</div>

```

### Compact labels

```html
<div class="pf-c-label-group">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
    </ul>
  </div>
</div>

```

### Compact labels, overflow

```html
<div class="pf-c-label-group">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <button class="pf-c-label pf-m-overflow pf-m-compact" type="button">
          <span class="pf-c-label__content">3 more</span>
        </button>
      </li>
    </ul>
  </div>
</div>

```

### Compact labels, vertical

```html
<div class="pf-c-label-group pf-m-vertical">
  <div class="pf-c-label-group__main">
    <ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact pf-m-blue">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 2
          </span>
        </span>
      </li>
      <li class="pf-c-label-group__list-item">
        <span class="pf-c-label pf-m-compact pf-m-green">
          <span class="pf-c-label__content">
            <span class="pf-c-label__icon">
              <i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
            </span>
            Label 3
          </span>
        </span>
      </li>
    </ul>
  </div>
</div>

```

## Documentation

### Accessibility

| Attribute                                                                                                  | Applied to                          | Outcome                                                                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `role="list"`                                                                                              | `.pf-c-label-group__list`           | Indicates that the label group list is a list element. This role is redundant since `.pf-c-label-group__list` is a `<ul>` but is required for screen readers to announce the list propertly. **Required** |
| `aria-label="[button label text]"`                                                                         | `.pf-c-label-group__close > button` | Provides an accessible name for a label group close button when an icon is used instead of text. Required when an icon is used with no supporting text. **Required**                                      |
| `aria-labelledby="[id value of .pf-c-label-group__close > button] [id value of .pf-c-label-group__label]"` | `.pf-c-label-group__close > button` | Provides an accessible name for the button. **Required**                                                                                                                                                  |
| `aria-label="[label text]"`                                                                                | `.pf-c-label-group__textarea`       | Provides an accessible name for the textarea. **Required**                                                                                                                                                |
| `row="1"`                                                                                                  | `.pf-c-label-group__textarea`       | Indicates that the label group textarea is one row. **Required**                                                                                                                                          |
| `tabindex="0"`                                                                                             | `.pf-c-label-group__textarea`       | Inserts the label group textarea into the tab order of the page so that it is focusable. **Required**                                                                                                     |

### Usage

| Class                          | Applied to                          | Outcome                                                                                      |
| ------------------------------ | ----------------------------------- | -------------------------------------------------------------------------------------------- |
| `.pf-c-label-group`            | `<div>`                             | Initiates the label group component. **Required.**                                           |
| `.pf-c-label-group__list`      | `<ul>`                              | Initiates the container for a list of labels. **Required.**                                  |
| `.pf-c-label-group__list-item` | `<li>`                              | Initiates the list item inside of the label group. **Required.**                             |
| `.pf-c-label-group__main`      | `<div>`                             | Initiates the main element in the label group. **Required when label and list are present**  |
| `.pf-c-label-group__textarea`  | `<textarea>`                        | Initiates the textarea element in the label group. **Required when label group is editable** |
| `.pf-c-label-group__label`     | `<span>`                            | Initiates the label to be used in the label group.                                           |
| `.pf-c-label-group__close`     | `<div>`                             | Initiates the container used for the button to remove the label group.                       |
| `.pf-c-button`                 | `.pf-c-label-group__close <button>` | Initiates the button used to remove the label group.                                         |
| `.pf-m-editable`               | `.pf-c-label-group`                 | Modifies the label group to support editable styling.                                        |
| `.pf-m-category`               | `.pf-c-label-group`                 | Modifies the label group to support category styling.                                        |
| `.pf-m-textarea`               | `.pf-c-label-group__list-item`      | Modifies the label group list item to support textarea.                                      |
