Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-breadcrumb.json --yes

Breadcrumb

Pro

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.

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.

Terminal
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-breadcrumb.json --yes
PROMPT
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
OptionTypeWhat it does
Defaultsaria-label = 'Breadcrumb'
Parts
PartWhat it is
BreadcrumbListThe trail itself, one row that never wraps
BreadcrumbItemOne place on the trail
BreadcrumbLinkA 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
BreadcrumbPageThe current page's name, in the last BreadcrumbItem; plain words, not a link
BreadcrumbSeparatorThe mark between two places
BreadcrumbEllipsisThree dots in a BreadcrumbItem for the ancestors a long trail leaves out; label?: string = 'More' — The dots' spoken name
BreadcrumbEllipsisMenuThe 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
BreadcrumbEllipsisMenuItemOne 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

KeyWhat it does
TabMove to the next link
Enter, Space or ArrowDownOn the collapsed middle's dots open the menu of the hidden steps, its first step active
ArrowUp, ArrowDown, EnterIn that menu move between the hidden steps and go to the active one
EscapeClose 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.

goop.so/themes/trail/components/breadcrumb.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-breadcrumb.json --yes

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.