Skip to content
Components

Breadcrumb

Location trail with links, the current page, and collapsed levels.

Composition

Location trail

  • <Breadcrumb>
    • <BreadcrumbList>
      • each ancestor
        • <BreadcrumbItem>
          • <BreadcrumbLink />
          </BreadcrumbItem>
      • between items
        • <BreadcrumbSeparator />
      • collapsed levels
        • <BreadcrumbItem>
          • <BreadcrumbEllipsis />
          </BreadcrumbItem>
      • current location
        • <BreadcrumbItem>
          • <BreadcrumbPage />
          </BreadcrumbItem>
      </BreadcrumbList>
    </Breadcrumb>

Installation

The Control UI source installs this primitive from src/registry/sources/control-ui/ui/breadcrumb.tsx.

Registry command
See registry manifest

Raw code

Primary installed source

src/registry/sources/control-ui/ui/breadcrumb.tsx

Knobs

Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.

--cui-breadcrumb-* · 3 knobsHow the cascade resolves
--cui-breadcrumb-list-foreground<color>var(--muted-foreground)
--cui-breadcrumb-page-foreground<color>var(--foreground)
--cui-breadcrumb-link-hover-foreground<color>var(--foreground)