<!-- Default -->
<ul class="tab-group">
<li class="tab">
<a class="btn tab__inner tab--is-current " href="#">
<span class="btn__inner">
<span class="btn__text">Team</span>
</span></a>
</li>
<li class="tab">
<a class="btn tab__inner " href="#">
<span class="btn__inner">
<span class="btn__text">Guests</span>
</span></a>
</li>
<li class="tab">
<a class="btn tab__inner " href="#">
<span class="btn__inner">
<span class="btn__text">Everyone</span>
</span></a>
</li>
</li>
</ul>
<!-- Large Group -->
<ul class="tab-group">
<li class="tab">
<button class="btn tab__inner tab--is-current " type="button">
<span class="btn__inner">
<span class="btn__text">Active</span>
</span>
</button>
</li>
<li class="tab">
<button class="btn tab__inner " type="button">
<span class="btn__inner">
<span class="btn__text">Current</span>
</span>
</button>
</li>
<li class="tab">
<button class="btn tab__inner " type="button">
<span class="btn__inner">
<span class="btn__text">Previous</span>
</span>
</button>
</li>
<li class="tab">
<button class="btn tab__inner " type="button">
<span class="btn__inner">
<span class="btn__text">Cancelled</span>
</span>
</button>
</li>
<li class="tab">
<button class="btn btn-small btn-simple btn-icon-only " type="button">
<span class="btn__inner">
<span class="btn__icon-wrapper">
<?xml version="1.0" encoding="utf-8"?>
<svg
class='btn__icon '
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
width="24px"
height="24px"
viewBox="0 0 24 24"
enable-background="new 0 0 24 24"
xml:space="preserve">
<path fill-rule="evenodd" fill="none" clip-rule="evenodd" d="M3.375 14.648C4.82475 14.648 6 13.4727 6 12.023C6 10.5732 4.82475 9.39799 3.375 9.39799C1.92525 9.39799 0.75 10.5732 0.75 12.023C0.75 13.4727 1.92525 14.648 3.375 14.648Z" stroke="#737780" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path fill-rule="evenodd" fill="none" clip-rule="evenodd" d="M20.625 14.648C22.0747 14.648 23.25 13.4727 23.25 12.023C23.25 10.5732 22.0747 9.39799 20.625 9.39799C19.1753 9.39799 18 10.5732 18 12.023C18 13.4727 19.1753 14.648 20.625 14.648Z" stroke="#737780" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path fill-rule="evenodd" fill="none" clip-rule="evenodd" d="M12 14.648C13.4497 14.648 14.625 13.4727 14.625 12.023C14.625 10.5732 13.4497 9.39799 12 9.39799C10.5503 9.39799 9.375 10.5732 9.375 12.023C9.375 13.4727 10.5503 14.648 12 14.648Z" stroke="#737780" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</span>
</span>
</button>
</li>
</ul>
<ul class="tab-group">
{{#each tabs}}
{{> @tab text=text isCurrent=isCurrent href=href}}
{{/each}}
{{#if overflow}}
<li class="tab">
{{> @button className="btn-small btn-simple" icon='<path fill-rule="evenodd" fill="none" clip-rule="evenodd" d="M3.375 14.648C4.82475 14.648 6 13.4727 6 12.023C6 10.5732 4.82475 9.39799 3.375 9.39799C1.92525 9.39799 0.75 10.5732 0.75 12.023C0.75 13.4727 1.92525 14.648 3.375 14.648Z" stroke="#737780" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path fill-rule="evenodd" fill="none" clip-rule="evenodd" d="M20.625 14.648C22.0747 14.648 23.25 13.4727 23.25 12.023C23.25 10.5732 22.0747 9.39799 20.625 9.39799C19.1753 9.39799 18 10.5732 18 12.023C18 13.4727 19.1753 14.648 20.625 14.648Z" stroke="#737780" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path fill-rule="evenodd" fill="none" clip-rule="evenodd" d="M12 14.648C13.4497 14.648 14.625 13.4727 14.625 12.023C14.625 10.5732 13.4497 9.39799 12 9.39799C10.5503 9.39799 9.375 10.5732 9.375 12.023C9.375 13.4727 10.5503 14.648 12 14.648Z" stroke="#737780" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>'}}
{{/if}}
</li>
</ul>
/* Default */
{
"tabs": [
{
"text": "Team",
"isCurrent": true,
"href": "#"
},
{
"text": "Guests",
"href": "#"
},
{
"text": "Everyone",
"href": "#"
}
]
}
/* Large Group */
{
"tabs": [
{
"text": "Active",
"isCurrent": true
},
{
"text": "Current"
},
{
"text": "Previous"
},
{
"text": "Cancelled"
}
],
"overflow": true
}
Tabs provide navigation between subviews.
Use Tabs to break down data-heavy views into more concise chunks that are relevant to the user.