Tabs

Horizontal navigation tabs

Codesandbox
Is Cool
Is Good
Lol no

Active and Events

Use active on the tab which should be active initially. Use on:change on Tabs to listen to tab changes.

Codesandbox
Change a tab to see the event in action

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. Make sure to specify a key for each tab when using each blocks. If you don't specify a key, by default, elements will be added/remove at the end of the block, and often, that might not be what you want.

Codesandbox
Total tabs: 3
Active Tab Index: 0

API

Tabs

Name Description Type Values Default
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 Icon to be shown on the 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... —
active Set this tab as active Boolean true, false false