+234 Design System

Breadcrumb

Where this page sits. Thirty-four files hand-roll one today, each with its own separator and spacing.

When to use it

Article

HTML
<nav class="p234-breadcrumb" aria-label="Breadcrumb">
  <ol>
    <li><a href="#">Home</a></li>
    <li><a href="#">World</a></li>
    <li><span aria-current="page">Canada work permits</span></li>
  </ol>
</nav>

Deeper, on a price page

HTML
<nav class="p234-breadcrumb" aria-label="Breadcrumb">
  <ol>
    <li><a href="#">Home</a></li>
    <li><a href="#">Cost of living</a></li>
    <li><a href="#">Petrol</a></li>
    <li><span aria-current="page">Lagos</span></li>
  </ol>
</nav>

Why it matters more here than usual

Almost every reader arrives on an article from search, never having seen the homepage. The breadcrumb is the first thing that tells them what site they are on and what else is here. It is navigation for people who did not come through the front door.

Accessibility

The visible trail and the BreadcrumbList JSON-LD should describe the same path. They are generated separately today, which is how they drift.

Tokens this component reads

--p234-color-ink--p234-color-ink-muted--p234-color-rule-strong--p234-type-meta-*--p234-space-3--p234-space-5