Skip to main content

Breadcrumb

shadow

Breadcrumb displays one segment of the navigation path in the application and is a descendant of the Breadcrumbs element. It can also display an icon.

Note

For more information on using Breadcrumbs, navigate to the [Breadcrumbs] element documentation(./breadcrumbs).

When to use

Use wje-breadcrumb 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 terminology for items across menus, breadcrumb and tabs.
  • For deep structures, add auxiliary context (breadcrumb, title, icons).

Attributes and properties

collapsed

PopisUrčuje, či je komponent zbalený.
Atribútcollapsed
Typboolean
Predvolené-

last

PopisRiadi správanie voľby last v komponente.
Atribútlast
Typany
Predvolené-

showCollapsedIndicator

PopisRiadi správanie voľby show-collapsed-indicator v komponente.
Atribútshow-collapsed-indicator
Typany
Predvolené-

Events

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

Methods

getBreadcrumbs

PopisVráti breadcrumbs z aktuálneho stavu komponentu.
Signatúra() => Element

CSS shadow parts

NázovPopis
nativeŠtýluje koreňovú shadow časť komponentu.
separatorŠtýluje shadow časť separator.

CSS custom variables

NázovPopis
--wje-breadcrumb-aVlastná CSS premenná na štýlovanie komponentu (a).
--wje-breadcrumb-a-hoverVlastná CSS premenná na štýlovanie komponentu (a hover).

Slots

NázovPopis
defaultPredvolený slot pre hlavný obsah komponentu.
startSlot pre obsah zobrazený pred hlavným obsahom.
endSlot pre obsah zobrazený za hlavným obsahom.
separatorSlot pre vlastný oddeľovač medzi položkami.