Skip to main content

Tabs

Tabbed content, useful to toggle between content without jumping around the page or across pages.

Basic Tabs

Attributes

NameDescription
type: stringThe color of the tabs
open: booleanSpecify which tab should be selected on load
disabled: booleanDisable specific tabs to prevent them from opening
header: stringThe text that should appear in each tab

Methods

NameDescription
currentTab(): Promise<number>returns the index of the current tab
openTab(tabIndex: number)Programmatically select a tab to open

CSS

Basic Tabs

Colors

Active