1
1
mirror of https://github.com/primer/css.git synced 2024-12-24 14:42:26 +03:00
css/docs/content/components/breadcrumb.md

34 lines
1.0 KiB
Markdown
Raw Normal View History

2019-07-30 02:56:17 +03:00
---
title: Breadcrumbs
path: components/breadcrumb
status: Stable
source: 'https://github.com/primer/css/tree/main/src/breadcrumb'
2019-07-30 02:56:17 +03:00
bundle: breadcrumb
---
Breadcrumbs are used to show taxonomical context on pages that are many levels deep in a sites hierarchy. Breadcrumbs show and link to parent, grandparent, and sometimes great-grandparent pages. Breadcrumbs are most appropriate on pages that:
- Are many levels deep on a site
- Do not have a section-level navigation
- May need the ability to quickly go back to the previous (parent) page
All items must contain links, and the last item must be selected.
2019-07-30 02:56:17 +03:00
#### Usage
```html live
<nav aria-label="Breadcrumb">
<ol>
<li class="breadcrumb-item">
<a href="https://github.com/business">Business</a>
</li>
<li class="breadcrumb-item">
<a href="https://github.com/business/customers">Customers</a>
</li>
<li class="breadcrumb-item breadcrumb-item-selected">
<a href="https://github.com/business/customers/mailchimp" aria-current="page">MailChimp</a>
</li>
2019-07-30 02:56:17 +03:00
</ol>
</nav>
```