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

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
Name Parameters Description
activeTabChanged 序号 切换事件


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...