Topcoat

CSS for clean and fast web apps

Tab Bar


Examples

HTML

<div class="topcoat-tab-bar">
  <label class="topcoat-tab-bar__item">
    <input type="radio" name="tab-bar" checked="true">
    <button class="topcoat-tab-bar__button">One</button>
  </label>
  <label class="topcoat-tab-bar__item">
    <input type="radio" name="tab-bar">
    <button class="topcoat-tab-bar__button">Two</button>
  </label>
  <label class="topcoat-tab-bar__item">
    <input type="radio" name="tab-bar">
    <button class="topcoat-tab-bar__button">Three</button>
  </label>
</div>
<br>
<div class="topcoat-tab-bar">
  <label class="topcoat-tab-bar__item">
    <button class="topcoat-tab-bar__button">One</button>
  </label>
  <label class="topcoat-tab-bar__item">
    <button class="topcoat-tab-bar__button--selected">Two</button>
  </label>
  <label class="topcoat-tab-bar__item">
    <button class="topcoat-tab-bar__button">Three</button>
  </label>
</div>