Breadcrumb links are a navigation tool: they provide users with the path they took to arrive at the current page. They are a common wayfinding pattern that provide users with a sense of where they are in a site’s hierarchy and offer a quick way to move between levels of the hierarchy.
This component has a visually hidden label to make it more accessible to screen readers.
You can change this property to change the label's content.
union
'You are here'
Basic example
<Breadcrumbs
items={[
{
text:'Home',
href:'https://www.mobify.com'
},
{
text:'Cat',
href:'https://www.mobify.com'
},
{
text:'Food'
}
]}
/>
With onClick
<Breadcrumbs
items={[
{
text:'Back',
onClick:()=>alert('Clicked')
}
]}
/>
Screenshot
Potential uses
Typically displayed above the title of the page.
Especially effective when the user requires context about which part of the site they’re browsing.
A valuable navigation tool for when a user deep links (from search or social media) into a page deep within the product catalogue.
Less valuable in apps where users typically browse linearly from the homepage and have access to built-in back buttons.
Accessibility
Show that the breadcrumbs are links by using the site’s link color or an underline.
Tappable links should be separated visually from non-interactive text.
Ensure the distance between links is at minimum one tap target (normally 44px), especially when breadcrumbs span over two lines.
Best practices
Users can tap a link in the hierarchy to retreat to that level.
When the breadcrumbs take up more space than a single page width, an x-overflow can be enabled allowing users to swipe left or right to view the full hierarchy.
If you provide breadcrumbs, ensure each level in the hierarchy contains a link to the correct landing page.
If you’re using an x-overflow, ensure there’s a clear indication that content exists outside of the view. (For example, you can use an alpha -> white gradient at the end).
It’s recommended to show the full hierarchy at all times if possible. If that results in too many levels, then you can restrict the full path, and use an ellipse to indicate that more levels exist beyond what’s shown.
Separators can vary visually. Use an approach that shows a forward motion, such as > or /.