Breadcrumbs

Breadcrumbs

The path to this page, from the HTML.

A <nav> whose child is an <ol> is a breadcrumb trail. There is no breadcrumb class on each crumb. The last item is the current page — aria-current="page".

<nav aria-label="Breadcrumb">
  <ol>
    <li><a href="/">Home</a></li>
    <li><a href="/library">Library</a></li>
    <li><a href="/library/data" aria-current="page">Data</a></li>
  </ol>
</nav>

The separator is --md-comp-breadcrumb-separator, default /. It is not an icon-font glyph, so the trail still reads if Symbols are not loaded. Set the token to "›" if you want a chevron.

.breadcrumb-wrapper and .breadcrumb remain as aliases for the older loose-link markup.

Tokens

Override these on the <nav>.

Token Default
--md-comp-breadcrumb-label-color --md-sys-color-on-surface-variant
--md-comp-breadcrumb-current-color --md-sys-color-on-surface
--md-comp-breadcrumb-separator "/"
--md-comp-breadcrumb-gap 8px
<nav aria-label="Breadcrumb" style="--md-comp-breadcrumb-separator: '›'">
  …
</nav>

Overflow

The trail wraps by default. Add nowrap to keep one row and scroll sideways; the current page does not shrink.

<nav class="nowrap" aria-label="Breadcrumb">
  <ol>…</ol>
</nav>
  • Source color

    The seed every generated ramp derives from. Pick one and browse the docs — the whole theme follows. Error does not: it is a fixed hue.