Themes

Components/Components/es-tabs
es-tabs

A tabbed panel. Each panel can be targeted via a slot.

Props

Name
Description
Type
Default
active

The currently active panel. By default it will take from the passed activeParam, or the first tab.

string
or
undefined
activeParam

Reflect the active tab to a search param of name. Set to false to disable.

boolean
or
string
tab
interTabIcon

Icon to be rendered between each tab.

[namespace: string
or
symbol, name: string]
or
string
or
undefined
interTabIconSize

thu size of the icon to be rendered between each tab.

number
20
tabs

A list of tabs.

Tab[]

Tab

Name
Description
Type
badge
() => boolean
id

The id of the tab. Used as the slot identifier and query parameter.

string
panelVariant

Apply styling to a panel:

  • 'default': Default styling.
  • 'no_pad': No padding.
PanelVariant
title

The title to be displayed in the tab.

string

Slots

Name
Description
[tabName]

Slots are created based off of the names of the passed tabs.

header-end

After all the tabs.

Events

Event
Detail
Description
tabChange
string

Triggered when the active tab is changed. detail is the newly active tab.

CSS Variables

Name
Description
--active-color

The active text color of the tab, and color of the active indicator;

--border-color

The color of border surrounding the tab content;

--focus-color

The focused text color of the tab;

--focus-indicator-color

The color of the focus indicator;

--inactive-color

The inactive text color of the tab;

Parts

Name
Description
active

The active tab.

indicator

The sliding indicatior bar.

inter-tab-icon

Icon between tabs (if specified).

panel

Tab panels.

tab

Tabs.

tablist

The tab container.