Browse components

Tabs

Tab list driven by a tabs array, in default or pills style.

molecules 2 variants
Variants / states: defaultpills

Live example

Default usage you can copy and adapt.

Basic Tabs

Simple tabbed interface

This is the overview tab content.

With Handler

Tabs with change handler

This is the overview tab content.

Props

The props you are most likely to need, with types and defaults.

Props / API
NameTypeRequiredDefaultDescription
tabsArray<{ id, label, disabled? }>No[]Tab definitions.
activeTabstringNo—Id of the open tab. Bindable.
variant'default' | 'pills'NodefaultTab styling.
onclick(event: Event) => voidNo—Runs when a tab is clicked.