Component
Breadcrumb
Published on
Description
The Breadcrumb component lists the pages between the home page and the current page. Pass items as an array of { href, text } objects, ordered from the home page to the current page.
Use a breadcrumb on sites with three or more levels of hierarchy. Place it before the <h1>.
Example
Accessibility
- The list sits in a
<nav>landmark named "Breadcrumb". Setlabelto translate the name. - The links are in an
<ol>, so screen readers announce the number of levels. - The last link has
aria-current="page", so screen readers announce it as the current page. - CSS draws the separators. Screen readers skip them, and they flip in right-to-left languages.
- Each link is at least 44 by 44 pixels.
References
- Breadcrumb Pattern(opens in new tab) — WAI-ARIA Authoring Practices Guide
- Understanding Target Size (Enhanced)(opens in new tab) — W3C
Related
Variables
None