Xzero UI
Pro library

Breadcrumb

Show where a page sits in a hierarchy.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui/breadcrumb
Live · keyboard ready

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui/breadcrumb

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { Breadcrumb } from "@/components/xzero/breadcrumb/breadcrumb";

export function SettingsPath() {
  return (
    <Breadcrumb
      items={[
        { label: "Workspace", href: "/" },
        { label: "Settings", href: "/settings" },
        { label: "Billing" },
      ]}
    />
  );
}

API reference

Breadcrumb

A path of links where the last item is the current page. Crumbs added later slide in.

PropTypeDefaultDescription
items (required){ label: string; href?: string; onClick?: (event: MouseEvent<HTMLElement>) => void }[]–Path from root to current page. Items with href render a plain a, or the link component set with XzeroProvider (such as next/link or a locale-aware Link); items with only onClick render buttons.
ariaLabelstring"Breadcrumb"Label for the nav landmark.

Keyboard interactions

KeysAction
TabMoves between crumb links and buttons.
EnterFollows the focused crumb.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Also in navigation

Guidance for AI tools

Breadcrumb: Show where a page sits in a hierarchy. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components