---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Breadcrumb

The 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.

Pro. Its export: `Breadcrumb`.

## Try it

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.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-breadcrumb.json --yes
```

```text
Add the Goop Breadcrumb to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
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

### Options

- `Defaults: aria-label = 'Breadcrumb'`

### Parts

- `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

- 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.

## Related

- [Pagination](/themes/trail/components/pagination): The row of page numbers with previous and next under a long table or list, to move between its pages.
- [Accordion](/themes/trail/components/accordion): Stacked sections that each open and close their own content, for a FAQ or a long page of options.
- [Collapsible](/themes/trail/components/collapsible): One trigger that shows and hides the content right below it, such as more options.
- [Contents nav](/themes/trail/components/contents-nav): A table of contents for a long reading page (an article, a guide, a help page), each link jumping to a section.
