alexander-rukin

Breadcrumbs

Navigation

About

A navigation trail of ancestor links leading to the current page, with chevron separators and automatic collapsing of long paths into an expandable ellipsis.

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 CollapsedBreadcrumbsDemo() {
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center bg-background p-8">
      <Breadcrumbs
        maxItems={4}
        tailCount={1}
        items={[
          { label: "Home", onClick: () => {} },
          { label: "Projects", onClick: () => {} },
          { label: "UI kit", onClick: () => {} },
          { label: "Components", onClick: () => {} },
          { label: "Navigation", onClick: () => {} },
          { label: "Breadcrumbs" },
        ]}
      />
    </div>
  );
}

More by alexander-rukin

View all
  • Carousel

    Carousel

    17
  • Progress

    Progress

    1
  • Filter Chip

    Filter Chip

    1
  • Combobox

    Combobox

  • Textarea

    Textarea

  • Tooltip

    Tooltip

  • Card

    Card

  • Range Slider

    Range Slider

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    100
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    295
  • Sidebar

    Sidebar

    422
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Breadrcrumb

    Breadrcrumb

    6