Breadcrumb
Use breadcrumbs to show a visitor's location in a website hierarchy and provide links back to higher-level pages.
Usage
Breadcrumbs show the current page’s place in the site structure and let users navigate to its parent pages.
Examples
Default
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024pxHTML
Wrapping
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024pxHTML
Component API
- Use a
<nav>with anaria-labelto identify the breadcrumb navigation. - Use an ordered list for the path. Parent items are links; the current page is a
<span aria-current="page">without a link. - Hide the separator and mobile back arrow from assistive technology with
aria-hidden="true". - Add the
@mobile-lg:truncateclass to the list for the default single-line display. Omit it to allow wrapping.
Accessibility
- Keep the current page in the breadcrumb trail even though it is not a link.
- Ensure separator icons have sufficient contrast against the background.