Skip to main content

TabGroup

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

variant

DescriptionUmiestnenie záložiek: top, bottom, start alebo end.
Attributevariant
Type"top" | "bottom" | "start" | "end"
Default'top'

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

NameDescription
nativeOdkazuje na hlavný obaľovací div element.
panelsOdkazuje na kontajner obsahujúci všetky tab-panely v skupine.
tabsOdkazuje na kontajner obsahujúci všetky taby v skupine.

CSS Custom Properties

NameDescription
--wje-tab-topVzdialenosť tabov od horného okraja.
--wje-tab-startVzdialenosť tabov od ľavého okraja.
--wje-tab-endVzdialenosť tabov od pravého okraja.
--wje-tab-bottomVzdialenosť tabov od dolného okraja.

Slots

NameDescription
``Predvolený slot pre obsah skupiny tabov.
navSlot pre navigačnú lištu záložiek.