npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-breadcrumb.json --yesBreadcrumb
ProThe row of links from the top of the app down to the current page, so a person can step back up a level, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- BreadcrumbListThe trail itself, one row that never wraps
- BreadcrumbItemOne place on the trail
- BreadcrumbLinkA link to one ancestor page, inside a BreadcrumbItem
- BreadcrumbPageThe current page's name, in the last BreadcrumbItem
- BreadcrumbSeparatorThe mark between two places
- BreadcrumbEllipsisThree dots in a BreadcrumbItem for the ancestors a long trail leaves out
- BreadcrumbEllipsisMenuThe collapsed middle that opens
- BreadcrumbEllipsisMenuItemOne hidden step in a BreadcrumbEllipsisMenu
import {
Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, BreadcrumbEllipsisMenu, BreadcrumbEllipsisMenuItem,
} from '@/components/ui/goop/breadcrumb';
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem>
<BreadcrumbLink href="/workspace">Workspace</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbEllipsisMenu label="Two more folders">
<BreadcrumbEllipsisMenuItem href="/notes">Notes</BreadcrumbEllipsisMenuItem>
<BreadcrumbEllipsisMenuItem href="/notes/field-interviews">Field interviews</BreadcrumbEllipsisMenuItem>
</BreadcrumbEllipsisMenu>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbPage>Spring launch</BreadcrumbPage>
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>Make the trail one to four places deep, collapse its middle into "…" and open it to reach the places it hides (the line under it says it is open), put a pack icon before its places, make the last place long enough to cut; press a place to go back to it. The trail goes nowhere: a press is only written under it.
When to use
- The row of links from the top of the app down to the current page, so a person can step back up a level.
- Also called: breadcrumbs.
Installation
Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Breadcrumb on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-breadcrumb.json --yesAdd the Goop Breadcrumb to this project. The install steps are at https://goop.so/docs/install.mdUsage
import {
Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, BreadcrumbEllipsisMenu, BreadcrumbEllipsisMenuItem,
} from '@/components/ui/goop/breadcrumb';
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem>
<BreadcrumbLink href="/workspace">Workspace</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbEllipsisMenu label="Two more folders">
<BreadcrumbEllipsisMenuItem href="/notes">Notes</BreadcrumbEllipsisMenuItem>
<BreadcrumbEllipsisMenuItem href="/notes/field-interviews">Field interviews</BreadcrumbEllipsisMenuItem>
</BreadcrumbEllipsisMenu>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbPage>Spring launch</BreadcrumbPage>
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>- Fits: record (its recipe).
- width, gap, background, text: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| Defaults | aria-label = 'Breadcrumb' |
| Part | What it is |
|---|---|
| BreadcrumbList | The trail itself, one row that never wraps |
| BreadcrumbItem | One place on the trail |
| BreadcrumbLink | A link to one ancestor page, inside a BreadcrumbItem; its children are that page's name; mark?: ReactNode — A leading pack icon, in the link's 16 px icon slot; also takes href?: string |
| BreadcrumbPage | The current page's name, in the last BreadcrumbItem; plain words, not a link |
| BreadcrumbSeparator | The mark between two places |
| BreadcrumbEllipsis | Three dots in a BreadcrumbItem for the ancestors a long trail leaves out; label?: string = 'More' — The dots' spoken name |
| BreadcrumbEllipsisMenu | The collapsed middle that opens; label?: string = 'More' — The dots' spoken name; children: ReactNode — The hidden steps, each a BreadcrumbEllipsisMenuItem, in the trail's order; open?: boolean — The menu's open state, when you hold it; with onOpenChange; defaultOpen?: boolean — Whether the menu starts open, when it holds its own state; onOpenChange?: (open: boolean) => void — Called with the menu's next open state; modal?: boolean — Whether the open menu holds the page (the default): no pointer outside it, the focus kept in it; container?: HTMLElement | null — Where the menu is portalled (default the page's body); also takes onClick?: (event: MouseEvent) => void; disabled?: boolean |
| BreadcrumbEllipsisMenuItem | One hidden step in a BreadcrumbEllipsisMenu; takes asChild; href?: string — The step's address: the row is a link to it; also takes onSelect?: (event: Event) => void; disabled?: boolean; icon?: IconName |
- data-slot values (to select a part by): breadcrumb, breadcrumb-ellipsis, breadcrumb-ellipsis-menu, breadcrumb-item, breadcrumb-link, breadcrumb-list, breadcrumb-page, breadcrumb-separator
Keyboard
| Key | What it does |
|---|---|
| Tab | Move to the next link |
| Enter, Space or ArrowDown | On the collapsed middle's dots open the menu of the hidden steps, its first step active |
| ArrowUp, ArrowDown, Enter | In that menu move between the hidden steps and go to the active one |
| Escape | Close that menu and give the focus back to the dots |
Accessibility
- The native element answers the keyboard.
Notes for AI
Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.