Skip to content

Breadcrumb

A path of links to the current page.

Path

Collapsed middle

Custom separator

Installation

npx shadcn@latest add @khaeli/breadcrumb

Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.

Installs with

Registry items
npm packages
  • @base-ui/react ^1.7.0
  • @keyline-icons/react ^2.2.0

Keyboard

Tab
Moves through the links in order. The current page is not a link and takes no focus.
Enter
Follows the focused link.

Accessible name

  • Breadcrumb is a nav landmark named "breadcrumb". When a page has more than one, give each its own aria-label.
  • BreadcrumbPage is marked aria-current="page". Separators and BreadcrumbEllipsis are hidden from assistive technology, so the levels behind an ellipsis are not announced: keep them reachable some other way.

Registry JSON

The item as the shadcn CLI reads it, with every file it ships: https://ui.khaeli.com/r/breadcrumb.json