Breadcrumb
Examples
To render a breadcrumb, use the class chi-breadcrumb
.
Base
<nav class="chi-breadcrumb" aria-label="Breadcrumb">
<ol>
<li class="chi-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="chi-breadcrumb__item">
<a href="#">Child 1</a>
</li>
<li class="chi-breadcrumb__item -active">
<a href="#" aria-current="page">Child 2</a>
</li>
</ol>
</nav>
Alternate Separator
Apply the -alt
class to render breadcrumbs with an alternate separator.
<nav class="chi-breadcrumb -alt" aria-label="Breadcrumb">
<ol>
<li class="chi-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="chi-breadcrumb__item">
<a href="#">Child 1</a>
</li>
<li class="chi-breadcrumb__item -active">
<a href="#" aria-current="page">Child 2</a>
</li>
</ol>
</nav>
Additional Sizes
Breadcrumbs support the following sizes: -xs
, -sm
, -md
,
-lg
, and -xl
. The default size is -md
.
-xs
-sm
-md
-lg
-xl
<!-- xs -->
<nav class="chi-breadcrumb -xs" aria-label="Breadcrumb">
<ol>
<li class="chi-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="chi-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>
<!-- sm -->
<nav class="chi-breadcrumb -sm" aria-label="Breadcrumb">
<ol>
<li class="chi-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="chi-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>
<!-- md -->
<nav class="chi-breadcrumb" aria-label="Breadcrumb">
<ol>
<li class="chi-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="chi-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>
<!-- lg -->
<nav class="chi-breadcrumb -lg" aria-label="Breadcrumb">
<ol>
<li class="chi-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="chi-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>
<!-- xl -->
<nav class="chi-breadcrumb -xl" aria-label="Breadcrumb">
<ol>
<li class="chi-breadcrumb__item">
<a href="#">Parent</a>
</li>
<li class="chi-breadcrumb__item -active">
<a href="#" aria-current="page">Child</a>
</li>
</ol>
</nav>