Theme
Install with your agentnpx shadcn@4.23.1 add @goop/meadow-breadcrumb

Breadcrumb

Free

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. Free, MIT.

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.

Terminal
npx shadcn@4.23.1 add @goop/meadow-breadcrumb
PROMPT
Add the Goop Breadcrumb to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { BreadcrumbEllipsis } from '@/components/ui/goop/breadcrumb';

import type { ReactNode } from 'react';
import {
  Breadcrumb,
  BreadcrumbEllipsisMenu,
  BreadcrumbEllipsisMenuItem,
  BreadcrumbItem,
  BreadcrumbLink,
  BreadcrumbList,
  BreadcrumbPage,
  BreadcrumbSeparator,
} from '@/components/ui/goop/breadcrumb';

function VisitTrail() {
  return (
    <Breadcrumb>
      <BreadcrumbList>
        <BreadcrumbItem>
          <BreadcrumbLink href="/sites">Sites</BreadcrumbLink>
        </BreadcrumbItem>
        <BreadcrumbSeparator />
        <BreadcrumbItem>
          <BreadcrumbEllipsisMenu label="Two more levels">
            <BreadcrumbEllipsisMenuItem href="/sites/north">North depot</BreadcrumbEllipsisMenuItem>
            <BreadcrumbEllipsisMenuItem href="/sites/north/inspections">Inspections</BreadcrumbEllipsisMenuItem>
          </BreadcrumbEllipsisMenu>
        </BreadcrumbItem>
        <BreadcrumbSeparator />
        <BreadcrumbItem>
          <BreadcrumbLink href="/sites/north/inspections/nov-2026">Nov 2026</BreadcrumbLink>
        </BreadcrumbItem>
        <BreadcrumbSeparator />
        <BreadcrumbItem>
          <BreadcrumbPage>W48</BreadcrumbPage>
        </BreadcrumbItem>
      </BreadcrumbList>
    </Breadcrumb>
  );
}

// `mark`: a pack icon from the theme's Glyph, `<Glyph icon="square" box={{ w: 12, h: 12 }} />`.
function FiledUnder({ mark }: { mark: ReactNode }) {
  return (
    <Breadcrumb>
      <BreadcrumbList>
        <BreadcrumbItem>
          <BreadcrumbLink variant="plain" href="/site-visits" mark={mark}>
            Site visits
          </BreadcrumbLink>
        </BreadcrumbItem>
      </BreadcrumbList>
    </Breadcrumb>
  );
}
  • Fits: schedule (its recipe).
  • BreadcrumbLink: A crumb that opens a menu of the places beside it (a view, month or week picker): a DropdownMenuTrigger asChild round <BreadcrumbLink asChild><button type="button">Calendar</button></BreadcrumbLink> — its chevron turns down under the pointer and while the menu is open. On the current place add aria-current="page" to the BreadcrumbLink: its words in the text colour, its chevron pointing down. A current page that opens nothing is a BreadcrumbPage.
  • height, width, padding, gap, corner, background, text, motion: 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; its props: breadcrumb--link.md
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 is read aloud; its props: breadcrumb--ellipsis.md
BreadcrumbEllipsisMenuThe collapsed middle that opens; its props: breadcrumb--ellipsis-menu.md
BreadcrumbEllipsisMenuItemOne hidden step in a BreadcrumbEllipsisMenu; its props: breadcrumb--ellipsis-menu-item.md

BreadcrumbEllipsisMenuItem

One hidden step in a BreadcrumbEllipsisMenu.

TSX
import { BreadcrumbEllipsisMenuItem } from '@/components/ui/goop/breadcrumb';

Options

  • href?: string — The step's address: the row holds a link to it.
  • Also takes: asChild?: boolean; onSelect?: (event: Event) => void; disabled?: boolean; icon?: IconName

BreadcrumbEllipsisMenu

The collapsed middle that opens.

TSX
import { BreadcrumbEllipsisMenu } from '@/components/ui/goop/breadcrumb';

Options

  • label?: string = 'More' — What the dots stand for, said to a reader (the dots alone are shown).
  • 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, as DropdownMenu): the page outside it takes no pointer and the focus stays in the menu.
  • container?: HTMLElement | null — Where the menu is portalled (default the page's body), as DropdownMenuContent's container.
  • Also takes: onClick?: (event: MouseEvent) => void; disabled?: boolean

BreadcrumbEllipsis

Three dots in a BreadcrumbItem for the ancestors a long trail leaves out; label is read aloud.

TSX
import { BreadcrumbEllipsis } from '@/components/ui/goop/breadcrumb';

Options

  • label?: string = 'More' — What the dots stand for, said to a reader (the dots alone are shown).

Keyboard

KeyWhat it does
TabMove to the next crumb link
EnterOn a crumb: go to that page
Enter, Space or ArrowDownOn a crumb that is a menu's trigger (a view, month or week picker, the current place's too) open its menu
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.
  • hover: the browser's own (:hover): write nothing

Its states are drawn from attributes and props, so assistive technology and your agent read the same thing:

StateDrawn by
focus-visiblethe attribute data-focus-visible
expandedthe attribute data-state=open
openthe attribute data-state=open
currentthe attribute aria-current=page

Motion

  • The part sets its own motion: add no transition or animation of your own.

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/meadow/components/breadcrumb.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add @goop/meadow-breadcrumb

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.