Tabs

Horizontal navigation tabs

Codesandbox
Is cool
Is good
lol no

Icons and Sizes

Codesandbox

Position

Codesandbox

Style

Use is-boxed, is-toggle, is-toggle and is-toggle-rounded, or is-fullwidth to alter to style of your tabs.

Codesandbox

Dynamic Tabs

Tabs can be be added and removed dynamically. active prop is bindable, bound to the active tab index. In cases where bind:active cannot be used or to execute any code after the active tab is changed, on:change event can be listened to. setActive(index) function is also exposed to change the active tab and can be called on the component reference.

Codesandbox
Total tabs: 3
Active Tab Index: 0

API

Tabs

Name Description Type Values Default
value Index of the active tab (zero-based), optional Number — 0
size Size of tabs, optional String is-small, is-medium, is-large —
position Position of tabs list, horizontally. By default they're positioned to the left, optional String is-centered, is-right —
style Style of tabs, optional String is-boxed, is-toggle, is-toggle-rounded, is-fullwidth —


Tab

Name Description Type Values Default
label Label for tab String — —
icon Show this icon on left-side of the tab, optional String — —
iconPack Fontawesome icon pack to use. By default the Icon component uses fas, optional String fas, fab, etc... —