Skip to content

Tab Nav

Child component of Tabs

API reference

Properties

PropertyAttributeDescriptionTypeDefault
messageOverridesUse this property to override individual strings used by the component.{ nextTabTitles?: string; previousTabTitles?: string; }
positionpositionSpecifies the position of calcite-tab-nav and calcite-tab-title components in relation to, and is inherited from the parent calcite-tabs, defaults to top. @internal"bottom" | "top""bottom"
selectedTitleread-onlySpecifies the component's selected calcite-tab-title.HTMLCalciteTabTitleElement
storageIdstorage-idSpecifies the name when saving selected calcite-tab data to localStorage.string
syncIdsync-idSpecifies text to update multiple components to keep in sync if one changes.string

Slots

NameDescription
default (unnamed)A slot for adding calcite-tab-titles.

Styles

NameDescription
--calcite-tab-background-colorWhen calcite-tabs is bordered, specifies the component's background color.
--calcite-tab-border-colorWhen calcite-tabs is bordered, specifies the component's border color.
--calcite-tab-text-colorSpecifies the component's iconStart, iconEnd`, and text color.

Events

NameDescriptionBehavior
calciteTabChangeEmits when the selected calcite-tab changes.bubblescomposed

Methods

NameDescriptionSignature
componentOnReadyCreate a promise that resolves once component is fully loaded.componentOnReady(): Promise<void>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.