Tabs

Horizontally 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="ci-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="ci-user-circle 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 class="fs-sm">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 class="fs-sm">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 class="fs-sm">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 class="fs-sm">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.ci-home.me-2
      | Home
  li.nav-item
    a(href="#profile1", class="nav-link", data-bs-toggle="tab", role="tab")
      i.ci-user-circle.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.fs-sm
      | 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.fs-sm
      | 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.fs-sm
      | 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.fs-sm
      | 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">
    <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
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab") Home
  ...

Media tabs: Icon

<!-- Media tabs: Icon -->
<ul class="nav nav-tabs media-tabs nav-justified" role="tablist">
  <li class="nav-item">
    <a class="nav-link disabled" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <div class="media-tab-media"><i class="ci-cart"></i></div>
        <div class="ps-3">
          <div class="media-tab-subtitle text-muted fs-xs mb-1">Disabled step</div>
          <h6 class="media-tab-title text-nowrap mb-0">Shopping cart</h6>
        </div>
      </div>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link active" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <div class="media-tab-media"><i class="ci-wallet"></i></div>
        <div class="ps-3">
          <div class="media-tab-subtitle text-muted fs-xs mb-1">Second step</div>
          <h6 class="media-tab-title text-nowrap mb-0">Payment method</h6>
        </div>
      </div>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <div class="media-tab-media"><i class="ci-package"></i></div>
        <div class="ps-3">
          <div class="media-tab-subtitle text-muted fs-xs mb-1">Third step</div>
          <h6 class="media-tab-title text-nowrap mb-0">Delivery info</h6>
        </div>
      </div>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <div class="media-tab-media"><i class="ci-check"></i></div>
        <div class="ps-3">
          <div class="media-tab-subtitle text-muted fs-xs mb-1">Fourth step</div>
          <h6 class="media-tab-title text-nowrap mb-0">Confirmation</h6>
        </div>
      </div>
    </a>
  </li>
</ul>
// Media tabs: Icon
ul(role="tablist").nav.nav-tabs.media-tabs.nav-justified
  li.nav-item
    a(href="#", class="nav-link disabled", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        .media-tab-media
          i.ci-cart
        .ps-3
          .media-tab-subtitle.text-muted.fs-xs.mb-1
            | Disabled step
          h6.media-tab-title.text-nowrap.mb-0
            | Shopping cart
  li.nav-item
    a(href="#", class="nav-link active", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        .media-tab-media
          i.ci-wallet
        .ps-3
          .media-tab-subtitle.text-muted.fs-xs.mb-1
            | Second step
          h6.media-tab-title.text-nowrap.mb-0
            | Payment method
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        .media-tab-media
          i.ci-package
        .ps-3
          .media-tab-subtitle.text-muted.fs-xs.mb-1
            | Third step
          h6.media-tab-title.text-nowrap.mb-0
            | Delivery info
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        .media-tab-media
          i.ci-check
        .ps-3
          .media-tab-subtitle.text-muted.fs-xs.mb-1
            | Fourth step
          h6.media-tab-title.text-nowrap.mb-0
            | Confirmation

Media tabs: Image

<!-- Media tabs: Icon -->
<ul class="nav nav-tabs media-tabs nav-justified" role="tablist">
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <div class="media-tab-media shadow-none"><img src="path-to-image" alt="Profile image"></div>
        <div class="ps-3">
          <div class="media-tab-subtitle text-muted fs-xs mb-1">Second step</div>
          <h6 class="media-tab-title text-nowrap mb-0">Shopping cart</h6>
        </div>
      </div>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link active" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <div class="media-tab-media shadow-none"><img src="path-to-image" alt="Profile image"></div>
        <div class="ps-3">
          <div class="media-tab-subtitle text-muted fs-xs mb-1">Second step</div>
          <h6 class="media-tab-title text-nowrap mb-0">Payment method</h6>
        </div>
      </div>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <div class="media-tab-media shadow-none"><img src="path-to-image" alt="Profile image"></div>
        <div class="ps-3">
          <div class="media-tab-subtitle text-muted fs-xs mb-1">Third step</div>
          <h6 class="media-tab-title text-nowrap mb-0">Delivery info</h6>
        </div>
      </div>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#" data-bs-toggle="tab" role="tab">
      <div class="d-flex align-items-center">
        <div class="media-tab-media shadow-none"><img src="path-to-image" alt="Profile image"></div>
        <div class="ps-3">
          <div class="media-tab-subtitle text-muted fs-xs mb-1">Fourth step</div>
          <h6 class="media-tab-title text-nowrap mb-0">Confirmation</h6>
        </div>
      </div>
    </a>
  </li>
</ul>
// Media tabs: Icon
ul(class="nav nav-tabs media-tabs nav-justified", role="tablist")
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        .media-tab-media.shadow-none
          img(src="path-to-image", alt="Profile image")
        .ps-3
          .media-tab-subtitle.text-muted.fs-xs.mb-1
            | Second step
          h6.media-tab-title.text-nowrap.mb-0
            | Shopping cart
  li.nav-item
    a(href="#", class="nav-link active", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        .media-tab-media.shadow-none
          img(src="path-to-image", alt="Profile image")
        .ps-3
          .media-tab-subtitle.text-muted.fs-xs.mb-1
            | Second step
          h6.media-tab-title.text-nowrap.mb-0
            | Payment method
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        .media-tab-media.shadow-none
          img(src="path-to-image", alt="Profile image")
        .ps-3
          .media-tab-subtitle.text-muted.fs-xs.mb-1
            | Third step
          h6.media-tab-title.text-nowrap.mb-0
            | Delivery info
  li.nav-item
    a(href="#", class="nav-link", data-bs-toggle="tab", role="tab")
      .d-flex.align-items-center
        .media-tab-media.shadow-none
          img(src="path-to-image", alt="Profile image")
        .ps-3
          .media-tab-subtitle.text-muted.fs-xs.mb-1
            | Fourth step
          h6.media-tab-title.text-nowrap.mb-0
            | Confirmation
Top