GodUI

Breadcrumbs

A breadcrumb trail with a shared-element hover pill that springs between crumbs, animated path changes, and an overflow that collapses into a popover.

Viewing /billing

Installation

pnpm dlx shadcn@latest add "https://godui.design/r/breadcrumbs.json"

Usage

tsx
 
import { Breadcrumbs } from "@/components/godui/breadcrumbs";
tsx
 
const items = [
  { label: "Home", href: "/" },
  { label: "Library", href: "/library" },
  { label: "Current" },
];

<Breadcrumbs items={items} onNavigate={router.push} />;

Hovering crumbs slides a shared pill; the last crumb is marked as the current page.

Examples

Collapsed overflow

Pass maxItems to fold the middle into a button that springs open into a popover.

Props

PropTypeDefaultDescription
itemsBreadcrumbItem[]Crumbs: { label, href?, icon? }
maxItemsnumber0Collapse the middle past this count (0 = never)
separatorReactNodechevronNode rendered between crumbs
collapsiblebooleantrueAllow the collapsed middle to expand
onNavigate(href: string) => voidCalled on crumb click (prevents default)

On this page

Built with GodUI

Beautifully crafted motion components for modern interfaces.

Star on GitHub