A breadcrumb navigation component that renders an ordered list of breadcrumb items.

Element
igc-breadcrumbs
Slots
default — Default slot for the breadcrumb items.

Remarks

Wrap breadcrumb items inside this component to build a navigable breadcrumb trail. The component sets the ARIA list role on the host element. Wrap it in a <nav aria-label="..."> element to provide an accessible navigation landmark — the label belongs on the <nav>, not the list, per the ARIA breadcrumb pattern.

Example

<!-- Default separator (tree_expand icon) -->
<nav aria-label="Breadcrumb">
  <igc-breadcrumbs>
    <igc-breadcrumb>
      <a href="/home">Home</a>
    </igc-breadcrumb>
    <igc-breadcrumb>
      <a href="/category">Category</a>
    </igc-breadcrumb>
    <igc-breadcrumb current>
      <a href="/category/item">Item</a>
    </igc-breadcrumb>
  </igc-breadcrumbs>
</nav>

<!-- Custom separator icon -->
<igc-breadcrumbs separator="chevron_right">
  <igc-breadcrumb><a href="/home">Home</a></igc-breadcrumb>
  <igc-breadcrumb current><a href="/item">Item</a></igc-breadcrumb>
</igc-breadcrumbs>

The icon name used as the default separator between breadcrumb items. Can be overridden per-item using the separator slot on an individual breadcrumb item.

separator: string = 'tree_expand'

Defined in src/components/breadcrumb/breadcrumbs.ts:69

Array of styles to apply to the element. The styles should be defined using the css tag function, via constructible stylesheets, or imported from native CSS module scripts.

Note on Content Security Policy:

Element styles are implemented with <style> tags when the browser doesn't support adopted StyleSheets. To use such <style> tags with the style-src CSP directive, the style-src value must either include 'unsafe-inline' or nonce-<base64-value> with <base64-value> replaced be a server-generated nonce.

To provide a nonce to use on generated <style> elements, set window.litNonce to a server-generated nonce in your page's HTML, before loading application code:

``

styles: CSSResult[]

Defined in src/components/breadcrumb/breadcrumbs.ts:52