{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "breadcrumb",
  "type": "registry:ui",
  "title": "Breadcrumb",
  "description": "The path from the top of the site to the current page, as links with separators.",
  "categories": [
    "ui"
  ],
  "dependencies": [
    "lucide-react",
    "radix-ui"
  ],
  "registryDependencies": [
    "@rivier-ui/theme",
    "@rivier-ui/cn"
  ],
  "files": [
    {
      "path": "registry/ui/breadcrumb.tsx",
      "type": "registry:ui",
      "target": "components/ui/breadcrumb.tsx",
      "content": "/**\n * @name breadcrumb\n * @category ui\n * @description The path from the top of the site to the current page, as links with separators.\n * @when Pages nested three or more levels deep, above the page title. The last item is the current page: a BreadcrumbPage, not a link. For moving between sibling pages use tabs or the navbar. With a router link, pass it through `asChild`.\n * @example\n * <Breadcrumb>\n *   <BreadcrumbList>\n *     <BreadcrumbItem><BreadcrumbLink href=\"/\">Home</BreadcrumbLink></BreadcrumbItem>\n *     <BreadcrumbSeparator />\n *     <BreadcrumbItem><BreadcrumbLink href=\"/projects\">Projects</BreadcrumbLink></BreadcrumbItem>\n *     <BreadcrumbSeparator />\n *     <BreadcrumbItem><BreadcrumbPage>Atlas</BreadcrumbPage></BreadcrumbItem>\n *   </BreadcrumbList>\n * </Breadcrumb>\n */\nimport { Slot } from \"radix-ui\";\nimport { ChevronRight, Ellipsis } from \"lucide-react\";\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"@/lib/cn\";\n\n/** The landmark. `aria-label` is \"Breadcrumb\" unless you translate it. */\nexport function Breadcrumb({ \"aria-label\": label = \"Breadcrumb\", ...props }: ComponentProps<\"nav\">) {\n  return <nav data-slot=\"breadcrumb\" aria-label={label} {...props} />;\n}\n\nexport function BreadcrumbList({ className, ...props }: ComponentProps<\"ol\">) {\n  return (\n    <ol data-slot=\"breadcrumb-list\" className={cn(\"flex flex-wrap items-center gap-x-2 text-sm break-words text-muted-foreground\", className)} {...props} />\n  );\n}\n\nexport function BreadcrumbItem({ className, ...props }: ComponentProps<\"li\">) {\n  return <li data-slot=\"breadcrumb-item\" className={cn(\"inline-flex items-center gap-2\", className)} {...props} />;\n}\n\nexport function BreadcrumbLink({ className, asChild = false, ...props }: ComponentProps<\"a\"> & { asChild?: boolean }) {\n  const Comp = asChild ? Slot.Root : \"a\";\n  return (\n    <Comp\n      data-slot=\"breadcrumb-link\"\n      className={cn(\n        \"inline-flex min-h-10 items-center underline-offset-4 transition-colors duration-instant ease-out hover:text-foreground hover:underline motion-reduce:transition-none\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\n/** The current page: text, not a link, marked `aria-current=\"page\"`. */\nexport function BreadcrumbPage({ className, ...props }: ComponentProps<\"span\">) {\n  return <span data-slot=\"breadcrumb-page\" aria-current=\"page\" className={cn(\"inline-flex min-h-10 items-center font-medium text-foreground\", className)} {...props} />;\n}\n\n/** Decoration between items, hidden from assistive technology. Pass children to replace the chevron. */\nexport function BreadcrumbSeparator({ className, children, ...props }: ComponentProps<\"li\">) {\n  return (\n    <li data-slot=\"breadcrumb-separator\" role=\"presentation\" aria-hidden=\"true\" className={cn(\"inline-flex items-center [&_svg]:size-3.5\", className)} {...props}>\n      {children ?? <ChevronRight strokeWidth={1.5} className=\"rtl:rotate-180\" />}\n    </li>\n  );\n}\n\n/** Stands for the levels left out of a long path. */\nexport function BreadcrumbEllipsis({ className, label = \"More levels\", ...props }: ComponentProps<\"span\"> & { label?: string }) {\n  return (\n    <span data-slot=\"breadcrumb-ellipsis\" className={cn(\"inline-flex size-10 items-center justify-center\", className)} {...props}>\n      <Ellipsis aria-hidden=\"true\" strokeWidth={1.5} className=\"size-4\" />\n      <span className=\"sr-only\">{label}</span>\n    </span>\n  );\n}\n"
    }
  ],
  "meta": {
    "category": "ui",
    "when": "Pages nested three or more levels deep, above the page title. The last item is the current page: a BreadcrumbPage, not a link. For moving between sibling pages use tabs or the navbar. With a router link, pass it through `asChild`.",
    "example": "<Breadcrumb>\n  <BreadcrumbList>\n    <BreadcrumbItem><BreadcrumbLink href=\"/\">Home</BreadcrumbLink></BreadcrumbItem>\n    <BreadcrumbSeparator />\n    <BreadcrumbItem><BreadcrumbLink href=\"/projects\">Projects</BreadcrumbLink></BreadcrumbItem>\n    <BreadcrumbSeparator />\n    <BreadcrumbItem><BreadcrumbPage>Atlas</BreadcrumbPage></BreadcrumbItem>\n  </BreadcrumbList>\n</Breadcrumb>",
    "client": false
  }
}
