Usage
<ul class="c-tabs">
<li>
<a class="c-tabs__link c-tabs__link--active" href="#tabs">Tab title</a>
</li>
<li>
<a class="c-tabs__link" href="#tabs">Tab title</a>
</li>
<li>
<a class="c-tabs__link" href="#tabs">Tab title</a>
</li>
</ul>
Implementation
Type | Name |
---|---|
Elements | |
Wrapper | .c-tabs |
Tab | .c-link |
Modifiers | None |
States | |
Tab active | .c-link--active |
Examples
Tab in Box
<div class="c-box">
<h1 class="c-box__header border-b-0 pb-2">Box header</h1>
<ul class="c-tabs px-5">
<li>
<a class="c-tabs__link c-tabs__link--active" href="#tabs">Tab title</a>
</li>
<li>
<a class="c-tabs__link" href="#tabs">Tab title</a>
</li>
<li>
<a class="c-tabs__link" href="#tabs">Tab title</a>
</li>
</ul>
<div class="px-5 py-4">
<p class="text-gray-700">Content goes here</p>
</div>
</div>