Skip to main content
  1. Docs
  2. Components
  3. Navigation

Breadcrumb

Where the page sits: links up the hierarchy, and the current page last. Server-safe.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.4
Renders
<nav aria-label="Breadcrumb">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Import

breadcrumb.tsx
// Experimental: from the package's experimental entry, until it's stable.
import { Breadcrumb, BreadcrumbItem } from "@qeetrix/react/experimental";

02

Props

And every native attribute of the element it renders.

PropTypeDefaultWhat it does
labelstring"Breadcrumb"Names the landmark. Server-safe, so the provider's strings don't reach it: pass a translation. aria-label overrides it.
childrenBreadcrumbItem[]requiredThe items, the current page last.
BreadcrumbItem: hrefstring—Where it goes. The current item takes none.
BreadcrumbItem: renderReactElementan <a>A router link instead: render={<Link to="/users" />}.
BreadcrumbItem: currentbooleanfalseThe current page: plain text, aria-current="page".
BreadcrumbItem: childrenReactNoderequiredThe page's name; past 240px it truncates and, as text, keeps a title.

03

Parts

Each part carries a data-slot, for tests and placement.

data-slotElementWhat it is
breadcrumb<nav>The landmark, holding an <ol>.
breadcrumb-item<li>One level: its separator, then its link.

04

With your router

render gives the item your router's link; href still goes on the item.

user-page.tsx
import { Link } from "@tanstack/react-router";

<BreadcrumbItem href="/directory/users" render={<Link to="/directory/users" />}>
  Users
</BreadcrumbItem>
Next — BreadcrumbAccessibility