Skip to main content

Breadcrumbs Container Component

Figma

The glu-breadcrumbs component serves as a container for breadcrumb items, providing a structured and accessible navigation layout. It wraps one or more <glu-breadcrumb> components inside a semantic <nav> element with proper ARIA attributes.


Basic Usage

Example 1: Simple Breadcrumb Navigation

Result
Loading...
Live Editor
<glu-breadcrumbs>
  <glu-breadcrumb href="/home">Home</glu-breadcrumb>
  <glu-breadcrumb href="/library">Library</glu-breadcrumb>
  <glu-breadcrumb>Data</glu-breadcrumb>
</glu-breadcrumbs>

Custom Separators

You can customize the separator between breadcrumb items by using the separator slot in the <glu-breadcrumb> component. In the examples below, a custom separator (a forward slash /) is used in place of the default arrow icon.

Example 2: Breadcrumb Navigation with Custom Separators

Result
Loading...
Live Editor
<glu-breadcrumbs>
  <glu-breadcrumb href="/home">
    Home
    <span slot="separator">/</span>
  </glu-breadcrumb>
  <glu-breadcrumb href="/library">
    Library
    <span slot="separator">/</span>
  </glu-breadcrumb>
  <glu-breadcrumb>
    Data
  </glu-breadcrumb>
</glu-breadcrumbs>

Slots

SlotDescription
The default slot for breadcrumb items. Typically, this should contain one or more <glu-breadcrumb> components.

Built with StencilJS