Skip to content

Breadcrumb

Horizontal trail of ancestor links ending in the current page.

Preview

Home / Jobs / #4412

<nav class="nx-breadcrumb" aria-label="Breadcrumb"><a href="#">Home</a><span class="nx-breadcrumb__sep" aria-hidden="true">/</span><a href="#">Jobs</a><span class="nx-breadcrumb__sep" aria-hidden="true">/</span><span class="nx-breadcrumb__current" aria-current="page">#4412</span></nav>

API

React props (NxKit)

React (NxKit) props
PropTypeDefaultRequiredDescription
items{label,href?}[]RequiredTrail; the last item (no href) renders as the current page.

Classes

Framework-agnostic classes
ClassDescription
.nx-breadcrumbnav, wraps
.nx-breadcrumb__sepDecorative separator, aria-hidden
.nx-breadcrumb__currentaria-current="page"

Accessibility

  • Wrapped in <nav aria-label="Breadcrumb">; the current page is a <span aria-current="page">, not a link.
  • Separators are aria-hidden — they're visual only, not read by a screen reader.

Do / Don’t

  • Do: End with the current page as plain text, not a link.Don’t: Don't add more than ~5 levels — collapse deep trails.

View in spec →