Breadcrumb
Shows the path to the current page as a trail of navigable crumbs.
Show codeHide code
Installation
import {
Breadcrumb,
BreadcrumbEllipsisTrigger,
BreadcrumbItem,
BreadcrumbLink,
BreadcrumbList,
BreadcrumbMenuTrigger,
BreadcrumbPage,
BreadcrumbSeparator,
} from "@makeplane/propel/components/breadcrumb";Usage
import {
Breadcrumb,
BreadcrumbItem,
BreadcrumbLink,
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
} from "@makeplane/propel/components/breadcrumb";
export default function BasicDemo() {
return (
<Breadcrumb aria-label="Breadcrumb">
<BreadcrumbList>
<BreadcrumbItem>
<BreadcrumbLink href="#" onClick={(event) => event.preventDefault()} label="Plane" />
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbLink href="#" onClick={(event) => event.preventDefault()} label="Projects" />
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbLink href="#" onClick={(event) => event.preventDefault()} label="Design" />
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbPage label="Work items" />
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>
);
}Examples
With icon
BreadcrumbLink and BreadcrumbPage take an optional leading icon; the crumb sizes it to 16×16, so the <Icon> needs no size.
Show codeHide code
Collapsed crumbs
When the trail grows too long, collapse the middle crumbs behind an ellipsis menu that opens the hidden crumbs.
Show codeHide code
Menu crumb
A crumb whose label opens a menu to switch the current step between sibling contexts without leaving the trail. Its own chevron is the breadcrumb chevron, so no separator follows it.
Show codeHide code
View switcher
The menu crumb composes propel’s Menu rows, so it supports a single-select list — the active view carries selected and shows the trailing check.
Show codeHide code
API Reference
Breadcrumb
Breadcrumb trail landmark: a <nav> wrapping a BreadcrumbList. Requires an aria-label (its
landmark name, conventionally "Breadcrumb") — the consumer supplies it so it can be localized.
BreadcrumbLink
A navigable crumb — an anchor styled as a hoverable pill, laying out an optional leading icon and
the label. Pass render to use a router link.
BreadcrumbPage
The current page — the last, non-navigable crumb (aria-current="page"), laying out an optional
leading icon and the label.
BreadcrumbMenuTrigger
The crumb that opens a BreadcrumbMenu.
BreadcrumbEllipsisTrigger
The icon-only crumb standing in for collapsed crumbs — grafts Base UI's Menu.Trigger onto the
styled BreadcrumbTrigger, with an ellipsis glyph by default (defaults are a components
concern). Unlike BreadcrumbMenuTrigger it carries no label and no chevron indicator: a
BreadcrumbSeparator follows it in the trail. Place a MenuContent of the hidden crumbs as its
sibling inside a Menu.