Skip to main content

TabGroup

TabGroup | Tab-based navigation shadow

TabGroup displays a tab-based navigation that allows users to switch between and view different parts of the application's content without having to navigate to another page. It consists of individual tabs Tab and Panels, which when clicked display the contents of the tab. The TabGroup element supports multiple appearance variants using the variant attribute.

Basic Usage

The Card element has been used only for the purpose of this demonstration.

Variants of tab placement

By adding the variant property it is possible to change the location of the tabs. Supported values are start, end and bottom.

Start

End

Bottom

Attributes and Properties

Option

DescriptionDefines a variant of the TabGroup layout. Possible values include start, end and bottom.
AttributeOption
Typestring
Defaultundefined

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS Custom Properties

NameDescription
--wj-font-sizeSpecifies the font size.
--wj-tab-color-activeSpecifies the background color of the active tab element.
--wj-tab-color-hoverDetermines the background color of the tab element when the mouse is pointed to it.
--wj-tab-font-weightSets the font weight.
--wj-tab-letter-spacingSets the distance between letters.
--wj-tab-padding-bottomSpecifies the bottom tab offset.
--wj-tab-padding-inlineSpecifies the horizontal offset of the tab.
--wj-tab-padding-topSpecifies the top tab offset.
--wj-tab-text-transfromSets the transformation of the text in the tab.

Slots

NameDescription
NoThe content is placed in the nav element.