Breadcrumbs
Breadcrumbs show the current screen level within a navigation structure of a site and provides direct access to its higher screen levels.
Also known as: breadcrumb navigation, breadcrumb trail, hierarchy trail, navigation trail, path, path trail
Basic usage
Permalink to "Basic usage"The breadcrumbs component allows customization of the displayed text for the current level or page via currentleveltext.
Links between the home icon and the current level can be added as slotted content by following the pattern provided.
<bolt-breadcrumbs currentleveltext="Current level">
<li><a href="link1">Previous level 1</a></li>
<li><a href="link2">Previous level 2</a></li>
<li><a href="link3">Previous level 3</a></li>
</bolt-breadcrumbs>
The home icon cannot be changed, but its destination can be set using iconlink.
<bolt-breadcrumbs
currentleveltext="Current level"
iconlink="https://nationwide.com"
>
<li><a href="link1">Previous level 1</a></li>
<li><a href="link2">Previous level 2</a></li>
<li><a href="link3">Previous level 3</a></li>
</bolt-breadcrumbs>
Breadcrumbs
Permalink to "Breadcrumbs"The bolt-breadcrumbs custom element provides a wrapper around a home icon link, a list of links leading to the current page, and the name of the current level.
Parameters
Permalink to "Parameters"currentleveltext: required. Sets the "Current level" breadcrumb text, and should represent the current page the user is on.iconlink: optional. Defaults to empty string (''). Sets the href value for the home icon link.
Slots
Permalink to "Slots"The breadcrumbs' default slot should contain only list items with links.
Each breadcrumb link in the slot should adhere to the following pattern:
<li><a href="...">...</a></li>
General guidelines
Permalink to "General guidelines"- Breadcrumbs are most commonly used on large websites with a hierarchy of more than two levels.
- Breadcrumbs should show progress from the highest navigation level to the lowest without skipping levels.
- Breadcrumbs should be placed in the top left corner, typically above the page title.
- Breadcrumbs shouldn't visually overwhelm the page.
- Breadcrumbs should exist on every Level 2 or lower page.
When to use
Permalink to "When to use"- Use Breadcrumbs when users are likely to have landed on the page from an external source.
- Use Breadcrumbs when users must navigate through a complex site or product.
When not to use
Permalink to "When not to use"- Avoid Breadcrumbs if there is a flat hierarchy that is only 1 or 2 levels deep.
- Avoid path-based Breadcrumb navigation as a "history trail."
When to use something else
Permalink to "When to use something else"- Use other components for primary navigation; Breadcrumbs should be a supplement.
Do
- Use Breadcrumbs when the navigation has more than two levels of depth.
- Show the full path for Breadcrumb items whenever possible.
- Breadcrumb items should be separated with the "/" symbol.
- Use Breadcrumbs in products with hierarchically arranged pages.
- Breadcrumbs should be placed in the top left corner, typically above the page title.
- Use the "home" Icon in Breadcrumbs to represent the homepage. No other Icons should be used within the component.
Don't
- Breadcrumbs shouldn't be used for home screens, level-one screens or mobile contexts.
- Breadcrumbs shouldn't be used as filters.
- Don't wrap individual Breadcrumb list items – truncation, while not preferable, is better.
- Don't truncate multiple labels at once.
Content guidelines
Permalink to "Content guidelines"Accessibility compliance
Permalink to "Accessibility compliance"-
WCAG 2.2 Compliant
-
JAWS 2025 Tested
-
NVDA 2025 Tested
-
VoiceOver Tested
-
Keyboard Tested
-
aXe Tested
All Bolt components have gone through accessibility testing, but please keep our accessibility guidelines in mind.