Breadcrumbs
A readable trail back to where you started. Long names wrap without breaking the layout.
Interactive preview
Usage
import { Breadcrumbs } from "@devvy-ui/react";
<Breadcrumbs items={[
{ label: "Home", href: "/" },
{ label: "Projects", href: "/projects" },
{ label: "Orbit" },
]} />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| items | readonly BreadcrumbItem[] | required | ReactNode label with optional native anchor attributes, including href. |
| label | string | Breadcrumb | Accessible name of the navigation. |
Accessibility & behavior
Platform Behavior & Guidelines
An ordered list inside a named navigation landmark. The final item receives aria-current="page", whether or not it has a URL. Separators are decorative. Long labels wrap. Links support native attributes, refs are forwarded to the nav, and no route interception is added.
Source ownership
Add the audited implementation directly into your repository with the CLI:
node /path/to/devvy-ui/packages/cli/src/cli.mjs add breadcrumbsMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.