Component docs
Loading
import { Breadcrumbs } from "@pixxl-tools/components";
// In Server Components:
import { Breadcrumbs } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly BreadcrumbItem[] | — | Trail from the root to the current page (the last item, not a link). |
renderLink | PixxlRenderLink<BreadcrumbItem> | — | Per-component link override, called as renderLink(props, item); spread props on your link. Prefer PixxlProvider linkComponent. |
separator | ReactNode | — | Separator between items (decorative, default /). |
itemsrequiredreadonly BreadcrumbItem[]
Trail from the root to the current page (the last item, not a link).
renderLinkPixxlRenderLink<BreadcrumbItem>
Per-component link override, called as renderLink(props, item); spread props on your link. Prefer PixxlProvider linkComponent.
separatorReactNode
Separator between items (decorative, default /).
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
const items = [
{ id: "docs", label: "Docs", href: "/docs" },
{ id: "button", label: "Button" },
];
<Breadcrumbs items={items} />