--- layout: documentation doc-tab: components doc-subtab: tabs variables: - name: $tabs-border-bottom-color value: $border - name: $tabs-border-bottom-style value: solid - name: $tabs-border-bottom-width value: 1px - name: $tabs-link-color value: $text - name: $tabs-link-hover-border-bottom-color value: $text-strong - name: $tabs-link-hover-color value: $text-strong - name: $tabs-link-active-border-bottom-color value: $primary - name: $tabs-link-active-color value: $primary - name: $tabs-link-padding value: 0.5em 1em - name: $tabs-boxed-link-radius value: $radius - name: $tabs-boxed-link-hover-background-color value: $background - name: $tabs-boxed-link-hover-border-bottom-color value: $border - name: $tabs-boxed-link-active-background-color value: $white - name: $tabs-boxed-link-active-border-color value: $border - name: $tabs-boxed-link-active-border-bottom-color value: transparent - name: $tabs-toggle-link-border-color value: $border - name: $tabs-toggle-link-border-style value: solid - name: $tabs-toggle-link-border-width value: 1px - name: $tabs-toggle-link-hover-background-color value: $background - name: $tabs-toggle-link-hover-border-color value: $border-hover - name: $tabs-toggle-link-radius value: $radius - name: $tabs-toggle-link-active-background-color value: $primary - name: $tabs-toggle-link-active-border-color value: $primary - name: $tabs-toggle-link-active-color value: $primary-invert --- {% capture tabs_example %}
{% endcapture %} {% capture tabs_centered_example %}
{% endcapture %} {% capture tabs_right_example %}
{% endcapture %} {% capture tabs_icons_example %}
{% endcapture %} {% capture tabs_small_example %}
{% endcapture %} {% capture tabs_medium_example %}
{% endcapture %} {% capture tabs_large_example %}
{% endcapture %} {% capture tabs_boxed_example %}
{% endcapture %} {% capture tabs_toggle_example %}
{% endcapture %} {% capture tabs_fullwidth_example %}
{% endcapture %} {% capture tabs_centered_boxed_example %}
{% endcapture %} {% capture tabs_toggle_fullwidth_example %}
{% endcapture %} {% capture tabs_centered_boxed_medium_example %}
{% endcapture %} {% capture tabs_toggle_fullwidth_large_example %}
{% endcapture %} {% include subnav-components.html %}

Tabs

Simple responsive horizontal navigation tabs, with different styles

{% include meta.html since="0.4.4" colors=false sizes=true variables=true %}

Tabs only require a tabs container and a <ul> list.
The default tabs style has a single border at the bottom.

{% include snippet.html content=tabs_example horizontal=true %} {% include snippet.html content=tabs_example horizontal=true more=true %} {% include anchor.html name="Alignment" %}

To align the tabs list, use the is-centered or is-right modifier on the .tabs container:

{% include snippet.html content=tabs_centered_example horizontal=true more=true %} {% include snippet.html content=tabs_right_example horizontal=true more=true %} {% include anchor.html name="Icons" %}

You can use any of the Font Awesome icons.

{% include snippet.html content=tabs_icons_example horizontal=true more=true %} {% include snippet.html content=tabs_icons_example horizontal=true more=true %} {% include anchor.html name="Sizes" %}

You can choose between 3 additional sizes: is-small is-medium and is-large.

{% include snippet.html content=tabs_small_example horizontal=true more=true %} {% include snippet.html content=tabs_medium_example horizontal=true more=true %} {% include snippet.html content=tabs_large_example horizontal=true more=true %} {% include anchor.html name="Styles" %}
If you want a more classic style with borders, just append the is-boxed modifier.
{% include snippet.html content=tabs_boxed_example horizontal=true more=true %}

If you want mutually exclusive tabs (like radio buttons where clicking one deselects all other ones), use the is-toggle modifier.

{% include snippet.html content=tabs_toggle_example horizontal=true more=true %}

If you want the tabs to take up the whole width available, use is-fullwidth.

{% include snippet.html content=tabs_fullwidth_example horizontal=true more=true %} {% include anchor.html name="Combining" %}

You can combine different modifiers. For example, you can have centered boxed tabs, or fullwidth toggle ones.

{% include snippet.html content=tabs_centered_boxed_example horizontal=true more=true %} {% include snippet.html content=tabs_toggle_fullwidth_example horizontal=true more=true %} {% include snippet.html content=tabs_centered_boxed_medium_example horizontal=true more=true %} {% include snippet.html content=tabs_toggle_fullwidth_large_example horizontal=true more=true %} {% include variables.html %}