robertlib

Breadcrumbs

Navigation

About

A breadcrumb trail showing the path from the home page to the current page, with a home icon, truncation of long labels, and automatic collapsing with an expandable "…" when there are too many crumbs to fit.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Breadcrumbs to your project and fits it to your theme.

Code

How Breadcrumbs is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Breadcrumbs from "@/components/ui/breadcrumbs";

export default function BreadcrumbsDemo() {
  return (
    <div className="space-y-4 p-6">
      <Breadcrumbs
        items={[
          { href: "/customers", label: "Customers" },
          { href: "/customers/42", label: "Jana Nováková" },
          { label: "Order 1042" },
        ]}
      />
      {/* A label that is still loading shows "…" */}
      <Breadcrumbs
        items={[{ href: "/projects", label: "Projects" }, { label: null }]}
      />
      <Breadcrumbs
        home={{ href: "/dashboard", label: "Dashboard" }}
        items={[{ label: "Reports" }]}
      />
      <Breadcrumbs
        home={false}
        items={[{ href: "/settings", label: "Settings" }, { label: "Users" }]}
      />
    </div>
  );
}

Dependencies

More by robertlib

View all
  • Timeline

    Timeline

    16
  • Chip

    Chip

    5
  • Switch

    Switch

    5
  • Spinner

    Spinner

    5
  • Progress Indicator

    Progress Indicator

    4
  • Collapsible Content

    Collapsible Content

    3
  • Empty State

    Empty State

    3
  • Checkbox

    Checkbox

    2

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    76
  • Footer with Big Wordmark

    Footer with Big Wordmark

    40
  • Sidebar

    Sidebar

    392
  • Oversized 404 Numeral

    Oversized 404 Numeral

    78
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    67
  • NavBar

    NavBar

    2
  • Pagination

    Pagination

    109
  • Tabs like bookmark

    Tabs like bookmark

    82