Skip to main content

Tab

shadow

The Tab component is a child of the TabGroup component and serves as a tab-based navigation button. It is used in combination with the TabPanel element.

note

For examples of using the Tab component, go to the documentation TabGroup.

When to use

Use wje-tab when the user needs to navigate the application or transition between states/screens.

When not to use

Do not use multiple parallel navigation patterns that compete with each other.

Accessibility

Provide clear active/selected states, predictable tab order, and naming of controls.

  • Keep the URL and UI state in sync to make the navigation reproducible.
  • Use consistent item terminology across menus, breadcrumb and tabs.
  • For deep structures, add auxiliary context (breadcrumb, title, icons).

Attributes and properties

panel

PopisNastavuje textovú hodnotu uloženú vo voľbe panel.
Atribútpanel
Typstring
Predvolenénull

route

PopisNastavuje textovú hodnotu uloženú vo voľbe route.
Atribútroute
Typstring
Predvolenénull

Events

NázovPopis
wje-tab:changeVyvolá sa pri zmene hodnoty komponentu.

Methods

setRovingTabIndex

PopisNastaví roving tab index a aplikuje súvisiace zmeny stavu.
Signatúra(value: number) => void

CSS shadow parts

Pre tento komponent nie sú dostupné žiadne CSS časti tieňa.

CSS custom variables

NázovPopis
--wje-tab-text-transformVlastná CSS premenná na štýlovanie komponentu (text transform).
--wje-tab-font-weightVlastná CSS premenná, ktorá riadi typografiu.
--wje-tab-letter-spacingVlastná CSS premenná, ktorá riadi rozostup písmen.
--wje-tab-padding-inlineVlastná CSS premenná, ktorá riadi padding inline.
--wje-tab-padding-topVlastná CSS premenná, ktorá riadi padding top.
--wje-tab-padding-bottomVlastná CSS premenná, ktorá riadi padding bottom.
--wje-tab-color-activeVlastná CSS premenná, ktorá riadi color active.
--wje-tab-color-hoverVlastná CSS premenná, ktorá riadi color hover.

Slots

Pre tento komponent nie sú dostupné žiadne sloty.