1
1
mirror of https://github.com/primer/css.git synced 2024-12-03 15:35:29 +03:00
css/docs/content/components/breadcrumb.md

884 B
Raw Blame History

title path status source bundle
Breadcrumbs components/breadcrumb Stable https://github.com/primer/css/tree/main/src/breadcrumb 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

Usage

<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" aria-current="page">MailChimp</li>
  </ol>
</nav>