Skip to content

Block 100 of 297

Breadcrumbs

The trail from the home page to the current page, with the last step announced as the current page.

Puck key
BreadcrumbsBlock
Export
breadcrumbsBlock
React component
<Breadcrumbs />
Path
components/puck/breadcrumbs-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

A single row showing where the current page sits in the site, from Home down to the page itself, with a choice of chevron, slash or arrow separators. The first item can show as a house icon. On narrow screens the trail wraps onto a second line instead of truncating, so long page names stay readable.

  • Program and service pages several levels deep
  • Department sub-pages on city or county sites
  • Document libraries and resource sections with nested categories
Writing the content
  • Start the Trail with Home and end with the current page; up to 8 items are allowed.
  • Leave Link blank on the last item. It is the page the visitor is already on.
  • Use the same short labels as your menu so people recognize each step, and shorten very long page titles.
  • Pick the Subtle background when the breadcrumbs sit directly under a white header; it adds a light band and bottom border.
Accessibility
  • The trail is an ordered list inside a nav labelled "Breadcrumb", so screen readers announce the list position and the landmark (WCAG 1.3.1).
  • The last item carries aria-current="page". Separators are decorative SVGs hidden from assistive tech.
  • When Home icon is on, the first link keeps its text as visually hidden content, so it still has a name. Links keep a 44px minimum height and a focus outline.
Customizing the code
  • Separator shapes live in the Sep function; add a case there to offer a new style.
  • Hover color is hover:text-indigo-700, and the content width is max-w-7xl to line up with the headers.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Trailarray
  • Separatorselect
  • Home iconradio
  • Backgroundradio