Tabs

Horizontally or vertically stacked list of items. When clicked each item switch content in the tab pane.

Bootstrap docs

Basic example

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. Excepteur sint occaecat cupidatat non proident.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente.

Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.

Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan.

<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
  <li class="nav-item">
    <a href="#home1" class="nav-link active" data-bs-toggle="tab" role="tab">
      <i class="fi-home me-2"></i>
      Home
    </a>
  </li>
  <li class="nav-item">
    <a href="#profile1" class="nav-link" data-bs-toggle="tab" role="tab">
      <i class="fi-user me-2"></i>
      Profile
    </a>
  </li>
  <li class="nav-item dropdown">
    <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button">Dropdown</a>
    <div class="dropdown-menu">
      <a href="#messages1" class="dropdown-item" data-bs-toggle="tab" role="tab">Messages</a>
      <a href="#settings1" class="dropdown-item" data-bs-toggle="tab" role="tab">Settings</a>
    </div>
  </li>
</ul>

<!-- Tabs content -->
<div class="tab-content">
  <div class="tab-pane fade show active" id="home1" role="tabpanel">
    <p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. Excepteur sint occaecat cupidatat non proident.</p>
  </div>
  <div class="tab-pane fade" id="profile1" role="tabpanel">
    <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente.</p>
  </div>
  <div class="tab-pane fade" id="messages1" role="tabpanel">
    <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
  </div>
  <div class="tab-pane fade" id="settings1" role="tabpanel">
    <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan.</p>
  </div>
</div>
// Nav tabs
ul(class="nav nav-tabs", role="tablist")
  li.nav-item
    a(href="#home1", class="nav-link active", data-bs-toggle="tab", role="tab")
      i.ai-home.me-2
      | Home
  li.nav-item
    a(href="#profile1", class="nav-link", data-bs-toggle="tab", role="tab")
      i.ai-user.me-2
      | Profile
  li.nav-item.dropdown
    a(href="#", class="nav-link dropdown-toggle", data-bs-toggle="dropdown", role="button")
      | Dropdown
    .dropdown-menu
      a(href="#messages1", class="dropdown-item", data-bs-toggle="tab", role="tab")
        | Messages
      a(href="#settings1", class="dropdown-item", data-bs-toggle="tab", role="tab")
        | Settings

// Tabs content
.tab-content
  div(id="home1", class="tab-pane fade show active", role="tabpanel")
    p
      | Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. Excepteur sint occaecat cupidatat non proident.
  div(id="profile1", class="tab-pane fade", role="tabpanel")
    p
      | Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente.
  div(id="messages1", class="tab-pane fade", role="tabpanel")
    p
      | Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
  div(id="settings1", class="tab-pane fade", role="tabpanel")
    p
      | Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan.

Alignment and fill

<!-- Center aligned -->
<ul class="nav nav-tabs justify-content-center" role="tablist">
  <li class="nav-item">
    <a href="#" class="nav-link" data-bs-toggle="tab" role="tab">Home</a>
  </li>
  ...
</ul>

<!-- Right aligned -->
<ul class="nav nav-tabs justify-content-end" role="tablist">
  <li class="nav-item">
    <a href="#" class="nav-link" data-bs-toggle="tab" role="tab">Home</a>
  </li>
  ...
</ul>

<!-- Fill tabs -->
<ul class="nav nav-tabs nav-fill" role="tablist">
  <li class="nav-item me-2">
    <a href="#" class="nav-link" data-bs-toggle="tab" role="tab">Home</a>
  </li>
  ...
</ul>
// Center aligned
ul(class="nav nav-tabs justify-content-center", role="tablist")
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab") Home
  ...

// Right aligned
ul(class="nav nav-tabs justify-content-end", role="tablist")
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab") Home
  ...

// Fill tabs
ul(class="nav nav-tabs nav-fill", role="tablist")
  li.nav-item.me-2
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab") Home
  ...

Vertical tabs

<!-- Vertical tabs -->
<ul class="nav nav-tabs flex-column" role="tablist">
  <li class="nav-item">
    <a class="nav-link active" href="#" data-bs-toggle="tab" role="tab">
      <i class="ai-home me-2"></i>
      Home
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <i class="ai-user me-2"></i>
      Profile
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <i class="ai-message-square me-2"></i>
      Messages
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <i class="ai-settings me-2"></i>
      Settings
    </a>
  </li>
</ul>
// Vertical tabs
ul(class="nav nav-tabs flex-column", role="tablist")
  li.nav-item
    a(href="#", class="nav-link active", data-bs-toggle="tab", role="tab")
      i.ai-home.me-2
      | Home
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      i.ai-user.me-2
      | Profile
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      i.ai-message-square.me-2
      | Messages
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      i.ai-settings.me-2
      | Settings

Light tabs

<!-- Light tabs -->
<ul class="nav nav-tabs nav-tabs-light" role="tablist">
  <li class="nav-item">
    <a class="nav-link active" href="#" data-bs-toggle="tab" role="tab">
      <i class="ai-home me-2"></i>
      Home
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <i class="ai-user me-2"></i>
      Profile
    </a>
  </li>
  <li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown" role="button">Dropdown</a>
    <div class="dropdown-menu dropdown-menu-end">
      <a class="dropdown-item" href="#" data-bs-toggle="tab" role="tab">Messages</a>
      <a class="dropdown-item" href="#" data-bs-toggle="tab" role="tab">Settings</a>
    </div>
  </li>
</ul>
// Light tabs
ul(class="nav nav-tabs nav-tabs-light", role="tablist")
  li.nav-item
    a(href="#", class="nav-link active", data-bs-toggle="tab", role="tab")
      i.ai-home.me-2
      | Home
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      i.ai-user.me-2
      | Profile
  li.nav-item.dropdown
    a(href="#", class="nav-link dropdown-toggle", data-bs-toggle="dropdown", role="button") Dropdown
    .dropdown-menu.dropdown-menu-end
      a(href="#", class="dropdown-item", data-bs-toggle="tab", role="tab") Messages
      a(href="#", class="dropdown-item", data-bs-toggle="tab", role="tab") Settings

Media tabs

<!-- Media tabs: Horizontal -->
<ul class="nav nav-tabs media-tabs" role="tablist">
  <li class="nav-item me-3 mb-3" style="max-width: 16.25rem;">
    <a class="nav-link active" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <img class="flex-shrink-0 rounded" width="60" src="path-to-image" alt="Product"/>
        <div class="ps-2 ms-1">
          <div class="d-flex justify-content-between align-items-center">
            <div class="fs-sm pe-1">Outdoor HD Cloud Security Camera</div>
            <i class="ai-chevron-right lead ms-2 me-1"></i>
          </div>
        </div>
      </div>
    </a>
  </li>
  <li class="nav-item me-3 mb-3" style="max-width: 16.25rem;">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <img class="flex-shrink-0 rounded" width="60" src="path-to-image" alt="Product"/>
        <div class="ps-2 ms-1">
          <div class="d-flex justify-content-between align-items-center">
            <div class="fs-sm pe-1">Running Sneakers Sports Collection</div>
            <i class="ai-chevron-right lead ms-2 me-1"></i>
          </div>
        </div>
      </div>
    </a>
  </li>
  <li class="nav-item me-3 mb-3" style="max-width: 16.25rem;">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <img class="flex-shrink-0 rounded" width="60" src="path-to-image" alt="Product"/>
        <div class="ps-2 ms-1">
          <div class="d-flex justify-content-between align-items-center">
            <div class="fs-sm pe-1">Wireless Virtual Reality Headset</div>
            <i class="ai-chevron-right lead ms-2 me-1"></i>
          </div>
        </div>
      </div>
    </a>
  </li>
</ul>

<!-- Media tabs: Light skin -->
<ul class="nav nav-tabs media-tabs media-tabs-light" role="tablist">
  ...
</ul>

<!-- Media tabs: Vertical -->
<ul class="nav nav-tabs media-tabs flex-column" role="tablist">
  ...
</ul>
// Media tabs: Horizontal
ul(class="nav nav-tabs media-tabs", role="tablist")
  li.nav-item.me-3.mb-3(style="max-width: 16.25rem;")
    a(href="#", class="nav-link active", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        img(src="path-to-image", alt="Product", width="60").flex-shrink-0.rounded
        .ps-2.ms-1
          .d-flex.justify-content-between.align-items-center
            .fs-sm.pe-1 Outdoor HD Cloud Security Camera
            i.ai-chevron-right.lead.ms-2.me-1
  li.nav-item.me-3.mb-3(style="max-width: 16.25rem;")
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        img(src="path-to-image", alt="Product", width="60").flex-shrink-0.rounded
        .ps-2.ms-1
          .d-flex.justify-content-between.align-items-center
            .fs-sm.pe-1 Running Sneakers Sports Collection
            i.ai-chevron-right.lead.ms-2.me-1
  li.nav-item.me-3.mb-3(style="max-width: 16.25rem;")
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        img(src="path-to-image", alt="Product", width="60").flex-shrink-0.rounded
        .ps-2.ms-1
          .d-flex.justify-content-between.align-items-center
            .fs-sm.pe-1 Wireless Virtual Reality Headset
            i.ai-chevron-right.lead.ms-2.me-1

// Media tabs: Light skin
ul(class="nav nav-tabs media-tabs media-tabs-light", role="tablist")
  | ...

// Media tabs: Vertical
ul(class="nav nav-tabs media-tabs flex-column", role="tablist")
  | ...

Fancy tabs

<!-- Fancy tabs -->
<ul class="nav nav-tabs fancy-tabs" role="tablist">

  <!-- Tab with long text -->
  <li class="nav-item">
    <a href="#" class="nav-link active" data-bs-toggle="tab" role="tab">
      <span class="fancy-tab-text">
        This is a long text example
      </span>
      <span class="fancy-tab-shape"></span>
    </a>
  </li>

  <!-- Tab with large text -->
  <li class="nav-item">
    <a href="#" class="nav-link" data-bs-toggle="tab" role="tab">
      <span class="fancy-tab-text h1 fw-normal">
        11/26
      </span>
      <span class="fancy-tab-shape"></span>
    </a>
  </li>

  <!-- Tab with icon -->
  <li class="nav-item">
    <a href="#" class="nav-link" data-bs-toggle="tab" role="tab">
      <span class="fancy-tab-text h3">
        <i class="ai-gift"></i>
      </span>
      <span class="fancy-tab-shape"></span>
    </a>
  </li>
</ul>
// Fancy tabs
ul(class="nav nav-tabs fancy-tabs", role="tablist")

  // Tab with long text
  li.nav-item
    a(href="#", class="nav-link active", data-bs-toggle="tab", role="tab")
      span.fancy-tab-text This is a long text example
      span.fancy-tab-shape
  
  // Tab with large text
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      span.fancy-tab-text.h1.fw-normal 11/26
      span.fancy-tab-shape
  
  // Tab with icon
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      span.fancy-tab-text.h3
        i.ai-gift
      span.fancy-tab-shape
Top