Primary usage
A plain trail: every item but the last renders as a link, the last renders as the current page.
Breadcrumb navigation styled for the nx app shell.
bunx shadcn@latest add @nx-ui/app-breadcrumbsScopeBreadcrumbs (its own registry item, scope-breadcrumbs) is the context switcher the nx shell mounts in the AppShell top bar. The first crumb is the scoped ORGANISATION — switching it changes auth scope; the second, only present when a project is in scope, switches between the org's CONSTRUCTION PROJECTS or clears back to All projects. Path crumbs follow. Try all three menus:
Clear the project via its menu ("All projects") — the crumb disappears and the trail returns to workspace level. Switching organisation also clears it: the project belonged to the old org.
A plain trail: every item but the last renders as a link, the last renders as the current page.
Give an item a `menu` and it renders as a dropdown switcher instead of a link — the pattern used for the organisation crumb in the nx header. The active entry gets a tick.
Any number of crumbs can carry a menu — here both the organisation and the project are switchable, with a plain final crumb for the current page.
Icons aren't part of the item shape — depth is communicated through labels and separators alone, even several levels deep.
The realistic composition: the trail sits above the page heading, with the leading crumb acting as the org switcher.
3.2t green waste received from Greenfield Collective, awaiting shredding.
Exported parts and their props, extracted from the component source.
| Prop | Type | Default | Description |
|---|---|---|---|
items* | AppBreadcrumbItem[] | — | — |
…extends React.ComponentProps<typeof Breadcrumb>