Examples

Default

Default tabs example

Default tabs usage

ClassApplied toOutcome
.pf-m-disableda.pf-v6-c-tabs__linkModifies a tabs link for disabled styles.
.pf-m-aria-disabled.pf-v6-c-tabs__linkModifies a tabs link for disabled styles, but is still hoverable/focusable.

Overflow

Overflow beginning of list example

Overflow beginning of list usage

ClassApplied toOutcome
.pf-m-scrollable.pf-v6-c-tabsEnables the directional scroll buttons.
.pf-v6-c-tabs__scroll-button<div>Initiates a tabs component scroll button container.

Horizontal overflow example

Horizontal overflow expanded example

Horizontal overflow selected example

Vertical

Vertical tabs example

Vertical expandable example

Vertical expanded example

Vertical expandable responsive example

Vertical expandable example (deprecated)

<div
  class="pf-v6-c-tabs pf-m-vertical pf-m-expandable"
  aria-label="Vertical expandable deprecated example"
  role="region"
  id="vertical-expandable-legacy"
>
  <div class="pf-v6-c-tabs__toggle">
    <div class="pf-v6-c-tabs__toggle-button">
      <button
        class="pf-v6-c-button pf-m-plain"
        type="button"
        aria-expanded="false"
        aria-label="Details"
        id="vertical-expandable-legacy-toggle-button"
        aria-labelledby="vertical-expandable-legacy-toggle-text vertical-expandable-legacy-toggle-button"
      >
        <span class="pf-v6-c-button__icon">
          <span class="pf-v6-c-tabs__toggle-icon">
            <svg
              class="pf-v6-svg"
              viewBox="0 0 20 20"
              fill="currentColor"
              aria-hidden="true"
              role="img"
              width="1em"
              height="1em"
            >
              <path
                d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
              />
            </svg>
          </span>
        </span>
      </button>
    </div>
    <span
      class="pf-v6-c-tabs__toggle-text"
      id="vertical-expandable-legacy-toggle-text"
    >Containers</span>
  </div>

  <ul
    class="pf-v6-c-tabs__list"
    role="tablist"
    aria-label="Vertical expandable deprecated example"
  >
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-legacy-users-link"
      >
        <span class="pf-v6-c-tabs__item-text">Users</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item pf-m-current" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="true"
        id="vertical-expandable-legacy-containers-link"
      >
        <span class="pf-v6-c-tabs__item-text">Containers</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-legacy-database-link"
      >
        <span class="pf-v6-c-tabs__item-text">Database</span>
      </button>
    </li>

    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-legacy-server-link"
      >
        <span class="pf-v6-c-tabs__item-text">Server</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-legacy-system-link"
      >
        <span class="pf-v6-c-tabs__item-text">System</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-legacy-network-wired-link"
      >
        <span class="pf-v6-c-tabs__item-text">Network</span>
      </button>
    </li>
  </ul>
</div>

Vertical expanded example (deprecated)

<div
  class="pf-v6-c-tabs pf-m-vertical pf-m-expandable pf-m-expanded"
  aria-label="Vertical expanded deprecated example"
  role="region"
  id="vertical-expanded-legacy"
>
  <div class="pf-v6-c-tabs__toggle">
    <div class="pf-v6-c-tabs__toggle-button">
      <button
        class="pf-v6-c-button pf-m-plain"
        type="button"
        aria-expanded="true"
        aria-label="Details"
        id="vertical-expanded-legacy-toggle-button"
        aria-labelledby="vertical-expanded-legacy-toggle-text vertical-expanded-legacy-toggle-button"
      >
        <span class="pf-v6-c-button__icon">
          <span class="pf-v6-c-tabs__toggle-icon">
            <svg
              class="pf-v6-svg"
              viewBox="0 0 20 20"
              fill="currentColor"
              aria-hidden="true"
              role="img"
              width="1em"
              height="1em"
            >
              <path
                d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
              />
            </svg>
          </span>
        </span>
      </button>
    </div>
    <span
      class="pf-v6-c-tabs__toggle-text"
      id="vertical-expanded-legacy-toggle-text"
    >Containers</span>
  </div>

  <ul
    class="pf-v6-c-tabs__list"
    role="tablist"
    aria-label="Vertical expanded deprecated example"
  >
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expanded-legacy-users-link"
      >
        <span class="pf-v6-c-tabs__item-text">Users</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item pf-m-current" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="true"
        id="vertical-expanded-legacy-containers-link"
      >
        <span class="pf-v6-c-tabs__item-text">Containers</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expanded-legacy-database-link"
      >
        <span class="pf-v6-c-tabs__item-text">Database</span>
      </button>
    </li>

    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expanded-legacy-server-link"
      >
        <span class="pf-v6-c-tabs__item-text">Server</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expanded-legacy-system-link"
      >
        <span class="pf-v6-c-tabs__item-text">System</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expanded-legacy-network-wired-link"
      >
        <span class="pf-v6-c-tabs__item-text">Network</span>
      </button>
    </li>
  </ul>
</div>

Vertical expandable responsive example (deprecated)

<div
  class="pf-v6-c-tabs pf-m-vertical pf-m-expandable pf-m-non-expandable-on-md pf-m-expandable-on-lg pf-m-non-expandable-on-xl"
  aria-label="Vertical expandable responsive deprecated example"
  role="region"
  id="vertical-expandable-responsive-legacy"
>
  <div class="pf-v6-c-tabs__toggle">
    <div class="pf-v6-c-tabs__toggle-button">
      <button
        class="pf-v6-c-button pf-m-plain"
        type="button"
        aria-expanded="false"
        aria-label="Details"
        id="vertical-expandable-responsive-legacy-toggle-button"
        aria-labelledby="vertical-expandable-responsive-legacy-toggle-text vertical-expandable-responsive-legacy-toggle-button"
      >
        <span class="pf-v6-c-button__icon">
          <span class="pf-v6-c-tabs__toggle-icon">
            <svg
              class="pf-v6-svg"
              viewBox="0 0 20 20"
              fill="currentColor"
              aria-hidden="true"
              role="img"
              width="1em"
              height="1em"
            >
              <path
                d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
              />
            </svg>
          </span>
        </span>
      </button>
    </div>
    <span
      class="pf-v6-c-tabs__toggle-text"
      id="vertical-expandable-responsive-legacy-toggle-text"
    >Containers</span>
  </div>

  <ul
    class="pf-v6-c-tabs__list"
    role="tablist"
    aria-label="Vertical expandable responsive deprecated example"
  >
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-responsive-legacy-users-link"
      >
        <span class="pf-v6-c-tabs__item-text">Users</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item pf-m-current" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="true"
        id="vertical-expandable-responsive-legacy-containers-link"
      >
        <span class="pf-v6-c-tabs__item-text">Containers</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-responsive-legacy-database-link"
      >
        <span class="pf-v6-c-tabs__item-text">Database</span>
      </button>
    </li>

    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-responsive-legacy-server-link"
      >
        <span class="pf-v6-c-tabs__item-text">Server</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-responsive-legacy-system-link"
      >
        <span class="pf-v6-c-tabs__item-text">System</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="vertical-expandable-responsive-legacy-network-wired-link"
      >
        <span class="pf-v6-c-tabs__item-text">Network</span>
      </button>
    </li>
  </ul>
</div>

Box

Box tabs example

Box overflow example

Box vertical example

Box tabs secondary variant example

Tab insets

Default tab insets example

Box tab insets example

Page insets example

Insets usage

ClassApplied toOutcome
.pf-m-inset-{none, sm, md, lg, xl, 2xl, 3xl}{-on-[sm, md, lg, xl, 2xl]}.pf-v6-c-tabsModifies the tabs component padding/inset to visually match padding of other adjacent components.
.pf-m-page-insets.pf-v6-c-tabsModifies the tabs component padding/inset to visually match padding of page elements.

Icons

Icons and text example

Sub tabs

Tabs with sub tabs example

Box tabs with sub tabs example

Filled

Filled tabs example

Filled with icons example

Filled box example

Filled box with icons example

Filled usage

ClassApplied toOutcome
.pf-m-fill.pf-v6-c-tabsModifies the tabs to fill the available space. Required

Tabs as navigation

Using the nav element example

Sub tabs using the nav element example

Site navigation variation

<nav
  class="pf-v6-c-tabs pf-m-nav"
  aria-label="Site navigation variation example"
>
  <div class="pf-v6-c-tabs__scroll-button" aria-hidden="true">
    <button
      class="pf-v6-c-button pf-m-small pf-m-plain"
      type="button"
      aria-label="Scroll left"
      disabled
    >
      <span class="pf-v6-c-button__icon">
        <svg
          class="pf-v6-svg"
          viewBox="0 0 20 20"
          fill="currentColor"
          aria-hidden="true"
          role="img"
          width="1em"
          height="1em"
        >
          <path
            d="m6.41 10 7.29-7.29.02-.02c.38-.4.37-1.03-.02-1.41-.4-.38-1.03-.37-1.41.02L4.64 8.95a1.49 1.49 0 0 0 0 2.12l7.65 7.65c.19.19.44.29.71.29.27 0 .52-.11.71-.29a.996.996 0 0 0 0-1.41l-7.29-7.29Z"
          />
        </svg>
      </span>
    </button>
  </div>
  <ul
    class="pf-v6-c-tabs__list"
    role="tablist"
    aria-label="Site navigation variation example"
  >
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-users-link"
      >
        <span class="pf-v6-c-tabs__item-text">Users</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item pf-m-current" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="true"
        id="nav-tabs-containers-link"
      >
        <span class="pf-v6-c-tabs__item-text">Containers</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-database-link"
      >
        <span class="pf-v6-c-tabs__item-text">Database</span>
      </button>
    </li>

    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-server-link"
      >
        <span class="pf-v6-c-tabs__item-text">Server</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-system-link"
      >
        <span class="pf-v6-c-tabs__item-text">System</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-network-wired-link"
      >
        <span class="pf-v6-c-tabs__item-text">Network</span>
      </button>
    </li>
  </ul>

  <div class="pf-v6-c-tabs__scroll-button" aria-hidden="true">
    <button
      class="pf-v6-c-button pf-m-small pf-m-plain"
      type="button"
      aria-label="Scroll right"
      disabled
    >
      <span class="pf-v6-c-button__icon">
        <svg
          class="pf-v6-svg"
          viewBox="0 0 20 20"
          fill="currentColor"
          aria-hidden="true"
          role="img"
          width="1em"
          height="1em"
        >
          <path
            d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
          />
        </svg>
      </span>
    </button>
  </div>
</nav><br/ >
As sub navigation:
<nav
  class="pf-v6-c-tabs pf-m-subtab pf-m-nav"
  aria-label="Site navigation variation as sub tabs example"
>
  <div class="pf-v6-c-tabs__scroll-button" aria-hidden="true">
    <button
      class="pf-v6-c-button pf-m-small pf-m-plain"
      type="button"
      aria-label="Scroll left"
      disabled
    >
      <span class="pf-v6-c-button__icon">
        <svg
          class="pf-v6-svg"
          viewBox="0 0 20 20"
          fill="currentColor"
          aria-hidden="true"
          role="img"
          width="1em"
          height="1em"
        >
          <path
            d="m6.41 10 7.29-7.29.02-.02c.38-.4.37-1.03-.02-1.41-.4-.38-1.03-.37-1.41.02L4.64 8.95a1.49 1.49 0 0 0 0 2.12l7.65 7.65c.19.19.44.29.71.29.27 0 .52-.11.71-.29a.996.996 0 0 0 0-1.41l-7.29-7.29Z"
          />
        </svg>
      </span>
    </button>
  </div>
  <ul
    class="pf-v6-c-tabs__list"
    role="tablist"
    aria-label="Site navigation variation as sub tabs example"
  >
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-users-link"
      >
        <span class="pf-v6-c-tabs__item-text">Users</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item pf-m-current" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="true"
        id="nav-tabs-containers-link"
      >
        <span class="pf-v6-c-tabs__item-text">Containers</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-database-link"
      >
        <span class="pf-v6-c-tabs__item-text">Database</span>
      </button>
    </li>

    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-server-link"
      >
        <span class="pf-v6-c-tabs__item-text">Server</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-system-link"
      >
        <span class="pf-v6-c-tabs__item-text">System</span>
      </button>
    </li>
    <li class="pf-v6-c-tabs__item" role="presentation">
      <button
        type="button"
        class="pf-v6-c-tabs__link"
        role="tab"
        aria-selected="false"
        id="nav-tabs-network-wired-link"
      >
        <span class="pf-v6-c-tabs__item-text">Network</span>
      </button>
    </li>
  </ul>

  <div class="pf-v6-c-tabs__scroll-button" aria-hidden="true">
    <button
      class="pf-v6-c-button pf-m-small pf-m-plain"
      type="button"
      aria-label="Scroll right"
      disabled
    >
      <span class="pf-v6-c-button__icon">
        <svg
          class="pf-v6-svg"
          viewBox="0 0 20 20"
          fill="currentColor"
          aria-hidden="true"
          role="img"
          width="1em"
          height="1em"
        >
          <path
            d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
          />
        </svg>
      </span>
    </button>
  </div>
</nav>

Tab item actions

Help button example

Close button example

Help and close button example

Add tab button

Add tab button example

Animate current tab accent

To animate the current tab accent, you must set the following variables on the .pf-v6-c-tabs wrapper. As tabs are added, removed, and resized, these values may need to be updated dynamically. The following examples use static values for these variables and are not updated dynamically, so there may be styling issues. For more functional examples, see the react tabs component examples.

  • --pf-v6-c-tabs--link-accent--start - the left offset of the current tab
  • --pf-v6-c-tabs--link-accent--length - the width of the current tab

Animate default tabs accent

Animate sub tabs accent

Animate filled tabs accent

Animate vertical tabs accent

Tab content

Default tab content example

Padding

Secondary

Documentation

Tabs overview

The tabs component should only be used to change content views within a page. The similar-looking but semantically different horizontal nav component is available for general navigation use cases.

Whenever a list of tabs is unique on the current page, it can be used in a <nav> element. Cases where the same set of tabs are duplicated in multiple regions on a page (e.g. cards on a dashboard) are less likely to benefit from using the <nav> element.

Usage

ClassApplied toOutcome
.pf-v6-c-tabs<nav>, <div>Initiates the tabs component. Required
.pf-v6-c-tabs__list<ul>Initiates a tabs component list. Required
.pf-v6-c-tabs__item<li>Initiates a tabs component item. Required
.pf-v6-c-tabs__item-text<span>Initiates a tabs component item icon. Required
.pf-v6-c-tabs__item-icon<span>Initiates a tabs component item text. Required
.pf-v6-c-tabs__item-close<span>Initiates a tabs component item close.
.pf-v6-c-tabs__item-close-icon<span>Initiates a tabs component item close icon.
.pf-v6-c-tabs__link<button>, <a>Initiates a tabs component link. Required
.pf-v6-c-tabs__scroll-button<div>Initiates a tabs component scroll button container.
.pf-v6-c-tabs__add<span>Initiates a tabs component add button.
.pf-v6-c-tabs__toggle<div>Initiates a tabs expandable toggle.
.pf-v6-c-tabs__toggle-button<button>Initiates a tabs expandable toggle button.
.pf-v6-c-tabs__toggle-icon<span>Initiates a tabs expandable toggle icon.
.pf-v6-c-tabs__toggle-text<span>Initiates a tabs expandable toggle text.
.pf-m-subtab.pf-v6-c-tabsApplies subtab styling to the tab component.
.pf-m-no-border-bottom.pf-v6-c-tabsRemoves bottom border from a tab component.
.pf-m-box.pf-v6-c-tabsApplies box styling to the tab component.
.pf-m-vertical.pf-v6-c-tabsApplies vertical styling to the tab component.
.pf-m-fill.pf-v6-c-tabsModifies the tabs to fill the available space.
.pf-m-inset-{none, sm, md, lg, xl, 2xl}{-on-[md, lg, xl, 2xl]}.pf-v6-c-tabsModifies tabs horizontal padding at optional breakpoint.
.pf-m-page-insets.pf-v6-c-tabsModifies the tabs component padding/inset to visually match padding of page elements.
.pf-m-secondary.pf-v6-c-tabs.pf-m-boxModifies the tabs component tab background colors for the box variant.
.pf-m-expandable{-on-[breakpoint]}.pf-v6-c-tabsModifies the tabs component to be expandable via a toggle at optional breakpoint. Note: works with vertical tabs only.
.pf-m-non-expandable{-on-[breakpoint]}.pf-v6-c-tabsModifies the tabs component to be non-expandable at optional breakpoint.
.pf-m-expanded.pf-v6-c-tabsModifies the expandable tabs component for the expanded state.
.pf-m-animate-current.pf-v6-c-tabsModifies tabs to animate movement of the current tab accent line.
.pf-m-initializing-accent.pf-v6-c-tabs.pf-m-animate-currentModifies tabs styles while initializing the “current” tab’s accent styles.
--pf-v6-c-tabs--link-accent--start.pf-v6-c-tabs.pf-m-animate-currentSets the value for the “start” inset of the current tab’s accent.
--pf-v6-c-tabs--link-accent--length.pf-v6-c-tabs.pf-m-animate-currentSets the value for the length of the current tab’s accent.
.pf-m-nav.pf-v6-c-tabsApplies site navigation styling to the tab component.
.pf-m-current.pf-v6-c-tabs__itemIndicates that a tab item is currently selected.
.pf-m-action.pf-v6-c-tabs__itemIndicates that a tab item contains actions other than the tab link.
.pf-m-overflow.pf-v6-c-tabs__itemApplies overflow menu styling to a tab item.
.pf-m-expanded.pf-v6-c-tabs__itemApplies expanded styling to the overflow menu tab item.
.pf-m-disableda.pf-v6-c-tabs__linkModifies a tabs link for disabled styles.
.pf-m-aria-disabled.pf-v6-c-tabs__linkModifies a tabs link for disabled styles, but is still hoverable/focusable.

Tab content accessibility

AttributeApplied toOutcome
role="tabpanel".pf-v6-c-tab-contentIndicates that the element serves as a container for a set of tabs. Required
aria-labelledby=[ID of tab element].pf-v6-c-tab-contentProvides an accessible name for the tab panel by referring to the tab element that controls it. Required
id=[ID of tab panel].pf-v6-c-tab-contentProvides an ID for the tab panel, and should be used as the value of aria-controls on the tab element that controls the panel. Required
hidden.pf-v6-c-tab-contentIndicates that the tab panel is not visible. Required on all but the active tab panel
tabindex="0".pf-v6-c-tab-contentPuts the tab panel in the page tab sequence and facilitates movement to panel content for assistive technology users. Required

Tab content usage

ClassApplied toOutcome
.pf-v6-c-tab-content<section>Initiates the tab content component. Required
.pf-v6-c-tab-content__body<div>Initiates the tab content body component.
.pf-m-padding.pf-v6-c-tab-content__bodyModifies the tab content body component padding.
.pf-m-secondary.pf-v6-c-tab-contentModifies the tab content component for secondary styles.

CSS variables