Skip to main content
  1. Docs
  2. Components
  3. Navigation

Breadcrumb

Where the page sits: links up the hierarchy, and the current page last. Server-safe.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.4
Renders
<nav aria-label="Breadcrumb">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A record's page, two or more levels down: Directory › Users › Priya Sharma.
  • A page header, above the title.
Not for
  • One level down: a single way backLink
  • Steps of a flowSteps
  • Views of the same pageTabs

02

Anatomy

  1. 1breadcrumb<nav>A landmark, named "Breadcrumb".
  2. 2link<a>A level up; your router's link through render.
  3. 3separator<svg>A 12px chevron, hidden from screen readers; it mirrors right to left.
  4. 4current<span aria-current="page">This page: text, not a link.

03

Do and don't

Start at the section
DoFrom the section the sidebar is on: the sidebar holds the top.
Don'tHome and the product first: the trail is long, and its labels truncate.
The hierarchy, not the history
DoWhere the page sits, the same however you came.
Don'tThe pages visited, in order.

04

Content

  • Each page's own title, shortened only if it must be.
  • The current page last, as plain text: a link to it goes nowhere.
  • No separators in the text: the chevrons are drawn.
Next — BreadcrumbAPI