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.

When to use

Use wje-breadcrumb when users need to understand location, move between views, or traverse hierarchy.

When not to use

Do not combine multiple competing navigation patterns for the same user flow.

Accessibility

Ensure visible active/selected states, predictable tab order, and clear control naming.

Best Practices

  • Keep URL state and UI navigation state synchronized.
  • Use consistent labels across menu, breadcrumbs, and tabs.
  • Add context for deep structures (breadcrumbs, headings, icon cues).

Attributes and Properties

collapsed

DescriptionControls whether the component is collapsed.
Attributecollapsed
Typeboolean
Default-

last

DescriptionControls how last behaves in the component.
Attributelast
Typeany
Default-

showCollapsedIndicator

DescriptionControls how show-collapsed-indicator behaves in the component.
Attributeshow-collapsed-indicator
Typeany
Default-

Events

No events available for this component.

Methods

getBreadcrumbs

DescriptionRetrieves the breadcrumb trail for the current element by returning its parent element.
Signature() => Element

CSS Shadow Parts

NameDescription
nativeThe native wrapper of the breadcrumb component.
separatorThe separator between breadcrumb items.

CSS Custom Properties

NameDescription
--wje-breadcrumb-aThe color of the breadcrumb text.
--wje-breadcrumb-a-hoverThe color of the breadcrumb separator line.

Slots

NameDescription
defaultThe main content of the breadcrumb.
startSlot for content at the start of the breadcrumb.
endSlot for content at the end of the breadcrumb.
separatorSlot for a custom separator between breadcrumb items.