Breadcrumbs are used to help users identify where they are in a sites page hierarchy.
To render a breadcrumb, use the class a-breadcrumb
.
<nav class="a-breadcrumb -text" aria-label="Breadcrumb">
<ol>
<li class="a-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="a-breadcrumb__item">
<a href="#">Child 1</a>
</li>
<li class="a-breadcrumb__item -active">
<a href="#" aria-current="page">Child 2</a>
</li>
</ol>
</nav>
Apply the -alt
class to render breadcrumbs with an alternate separator.
<nav class="a-breadcrumb -alt -text" aria-label="Breadcrumb">
<ol>
<li class="a-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="a-breadcrumb__item">
<a href="#">Child 1</a>
</li>
<li class="a-breadcrumb__item -active">
<a href="#" aria-current="page">Child 2</a>
</li>
</ol>
</nav>
Use text utilities such as -text--small
or
-text--large
to change the size of breadcrumb text.
<nav class="a-breadcrumb -text--large" aria-label="Breadcrumb">
<ol>
<li class="a-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="a-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>
<nav class="a-breadcrumb -text--larger" aria-label="Breadcrumb">
<ol>
<li class="a-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="a-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>
<nav class="a-breadcrumb -text--small" aria-label="Breadcrumb">
<ol>
<li class="a-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="a-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>
<nav class="a-breadcrumb -text--smaller" aria-label="Breadcrumb">
<ol>
<li class="a-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="a-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>