Skip to contentKino
Skip to Content

Breadcrumb

The trail of pages that leads to this one, with the Navigation menu's highlight gliding between its links. When it runs out of room, the crumbs after the first fold into a Dropdown menu behind “…”, the earliest first, and unfold as room comes back.

npx shadcn add https://kinoui.com/r/breadcrumb.json
Share on

Examples

Visa cards fail at checkout

Default

Links to the pages on the way here, and the page you’re on at the end. The highlight glides between the links.

Brand kit.pdf

Icons

An icon goes before a crumb’s name and is sized for it. A crumb that is only an icon takes an aria-label.

Webhooks

Separator

A separator’s children replace the chevron, such as a slash.

Installation

npx shadcn@latest add https://kinoui.com/r/breadcrumb.json
Files
lib/reduce-motion.tslib/scroll.tslib/refs.tslib/resize.tslib/swap.tsxlib/popup.tslib/glide.tsxcomponents/kino/tooltip.tsxlib/cut.tsxcomponents/kino/separator.tsxlib/run-progress.tslib/highlight.tslib/menu.tsxcomponents/kino/dropdown-menu.tsxcomponents/kino/breadcrumb.tsx
Packages
@base-ui/reactclass-variance-authority

New to Kino? Installation covers what your project needs first and the @kino namespace.

API reference

PropTypeDefaultDescription
overflowLabelstring'Show hidden pages'What a screen reader calls “…”.
PropTypeDefaultDescription
renderReactElement(props, state) => ReactElementNoneThe element it renders as.

Data attributes

AttributeOnDescription
data-collapsedBreadcrumbItem, BreadcrumbSeparatorPresent while the crumb, or the separator after it, is folded into “…”.
data-glidedBreadcrumbLinkPresent while the highlight is on it.

Accessibility

  • The trail is a nav landmark named “Breadcrumb”, holding an ordered list. The page you’re on is aria-current="page" and isn’t a link.
  • Separators are hidden from screen readers, so each crumb is read once, as a link in a list.
  • Every link is in the tab order, “…” included: it is a button that opens a menu of the folded pages, moved through with the arrow keys and closed with Escape, which hands focus back to it.
  • The highlight follows the pointer and visible focus. In forced colours it takes the system highlight, and the focus ring stays.