Components · Navigation · Breadcrumb
Back to Breadcrumb typesBreadcrumb
A horizontal trail of navigational links showing the user's current location within a hierarchy, separated by a divider - the last item is always the current page, shown as plain text, not a link.
Properties
Size and labels are properties of the same component, not separate trails - change them below to check this breadcrumb's style and states in the Live Preview. Item count follows the number of labels entered, and the last label is always the current page.
Live Preview
Both types compared side by side, each in all 5 states - the first link demonstrates the row's state while every other link and the current-page item stay at Rest. One full matrix is rendered per selected Size. Entering more than 4 labels collapses the middle items into a single non-interactive "…" marker, keeping the first item and the last two visible.
When to use
Anywhere a user needs to see and retrace their location within a nested hierarchy.
Component Guide
Overview
Breadcrumb is a horizontal trail of navigational links showing the user's current location within a hierarchy, separated by a divider - the last item is always the current page, shown as plain text rather than a clickable link.
When to Use
- A product category trail - Home / Electronics / Laptops.
- A file or folder path - showing nested location within a file browser.
- Documentation hierarchy or a multi-step form's current section - anywhere retracing the path back up the hierarchy is useful.
When Not to Use
- A flat structure with no real hierarchy - a breadcrumb implies nested depth; don't add one just to show a page title.
- The primary means of navigating the product - Breadcrumb supplements primary navigation (a sidebar, a nav bar) - it shouldn't be the only way to get around.
- A sequence of steps the user is moving through, rather than a location in a hierarchy - use Steps instead.
Best Practices
- Keep every item except the last one a real, clickable link, so users can jump back to any ancestor level directly.
- Truncate very long trails (many levels deep) with an ellipsis or collapsed middle section rather than wrapping across lines - past 4 levels, show the first level, a collapsed "…" (expandable on click/tap to reveal the hidden middle levels), then the last 2 levels plus the current page.
- Match the trail exactly to the real navigational hierarchy - a breadcrumb that lies about structure erodes trust in it.
Do and Don't
Do
Every ancestor is a real link back up the hierarchy; only the current page is plain text, since it has nowhere further to go.
Don't
When every crumb is unclickable text, the trail can only be read, not used - the user still has to find another way back to Projects.
Accessibility
- Wrapped in a nav landmark with an accessible name ("Breadcrumb"), so it's easy to jump to for screen-reader users.
- The current page (last item) is marked with aria-current="page" rather than just styled differently.
- Dividers between items are decorative and hidden from assistive technology (aria-hidden), so the trail reads cleanly as a list of links.
Related Components
Anchor, Tabs, Steps.
{
"component": "Breadcrumb",
"category": "Navigation",
"summary": "Breadcrumb is a horizontal trail of navigational links showing the user's current location within a hierarchy, separated by a divider - the last item is always the current page, shown as plain text rather than a clickable link.",
"whenToUse": [
"A product category trail - Home / Electronics / Laptops.",
"A file or folder path - showing nested location within a file browser.",
"Documentation hierarchy or a multi-step form's current section - anywhere retracing the path back up the hierarchy is useful."
],
"whenNotToUse": [
"A flat structure with no real hierarchy - a breadcrumb implies nested depth; don't add one just to show a page title.",
"The primary means of navigating the product - Breadcrumb supplements primary navigation (a sidebar, a nav bar) - it shouldn't be the only way to get around.",
"A sequence of steps the user is moving through, rather than a location in a hierarchy - use Steps instead."
],
"bestPractices": [
"Keep every item except the last one a real, clickable link, so users can jump back to any ancestor level directly.",
"Truncate very long trails (many levels deep) with an ellipsis or collapsed middle section rather than wrapping across lines.",
"Match the trail exactly to the real navigational hierarchy - a breadcrumb that lies about structure erodes trust in it."
],
"doAndDont": {
"do": "Every ancestor is a real link back up the hierarchy; only the current page is plain text, since it has nowhere further to go.",
"dont": "When every crumb is unclickable text, the trail can only be read, not used - the user still has to find another way back to Projects."
},
"accessibility": [
"Wrapped in a nav landmark with an accessible name (\"Breadcrumb\"), so it's easy to jump to for screen-reader users.",
"The current page (last item) is marked with aria-current=\"page\" rather than just styled differently.",
"Dividers between items are decorative and hidden from assistive technology (aria-hidden), so the trail reads cleanly as a list of links."
],
"relatedComponents": [
"Anchor",
"Tabs",
"Steps"
]
}