Breadcrumbs
Indicate the current page’s location within a navigational hierarchy.
Example
Use <bs-breadcrumb> with linked <bs-breadcrumb-item> entries to show the current page within a navigation hierarchy. Mark the final item with is-active="true" when it represents the current page.
<bs-breadcrumb>
<bs-breadcrumb-item is-active="true">Home</bs-breadcrumb-item>
</bs-breadcrumb>
<bs-breadcrumb>
<bs-breadcrumb-item href="#">Home</bs-breadcrumb-item>
<bs-breadcrumb-item is-active="true">Library</bs-breadcrumb-item>
</bs-breadcrumb>
<bs-breadcrumb>
<bs-breadcrumb-item href="#">Home</bs-breadcrumb-item>
<bs-breadcrumb-item href="#">Library</bs-breadcrumb-item>
<bs-breadcrumb-item is-active="true">Data</bs-breadcrumb-item>
</bs-breadcrumb>
Dividers
Breadcrumb dividers are added by Bootstrap CSS. Set separator on <bs-breadcrumb> when a single breadcrumb needs a different divider without changing the global stylesheet.
<bs-breadcrumb separator=">">
<bs-breadcrumb-item href="#">Home</bs-breadcrumb-item>
<bs-breadcrumb-item href="#">Library</bs-breadcrumb-item>
<bs-breadcrumb-item is-active="true">Data</bs-breadcrumb-item>
</bs-breadcrumb>
Accessibility
Breadcrumbs are navigation landmarks, so provide a meaningful label with aria-label. The active item should identify the current page; is-active="true" emits that state for the final breadcrumb item.
<bs-breadcrumb aria-label="breadcrumb">
<bs-breadcrumb-item href="#">Home</bs-breadcrumb-item>
<bs-breadcrumb-item href="#">Docs</bs-breadcrumb-item>
<bs-breadcrumb-item is-active="true">Breadcrumbs</bs-breadcrumb-item>
</bs-breadcrumb>
is-active.CSS
Variables
Breadcrumbs use Bootstrap local CSS variables for spacing, divider color, active color, and the divider value. The helper exposes the common per-component divider case through separator.
Sass variables
Use Sass customization for global breadcrumb divider, padding, margin, and active-color defaults.