{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "breadcrumb",
  "title": "Breadcrumb",
  "description": "The trail of links from the top of a site to the current page, with separators and an ellipsis.",
  "dependencies": [
    "@radix-ui/react-slot",
    "lucide-react"
  ],
  "registryDependencies": [
    "@corsair-ui/utils"
  ],
  "files": [
    {
      "path": "registry/default/ui/breadcrumb.tsx",
      "content": "import { Slot } from \"@radix-ui/react-slot\";\nimport { ChevronRightIcon, MoreHorizontalIcon } from \"lucide-react\";\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"@/registry/default/lib/utils\";\n/**\n * The trail of pages from the top of a site down to the current one. It is\n * a `<nav>` landmark named \"Breadcrumb\" (change it with `aria-label`) around\n * an ordered list, so screen readers announce how many levels there are.\n * The links are real links, reached with Tab and followed with Enter; the\n * last entry, `BreadcrumbPage`, is announced as the current page. The\n * separators are hidden from assistive tech. Nothing animates.\n *\n * @example\n * <Breadcrumb>\n *   <BreadcrumbList>\n *     <BreadcrumbItem>\n *       <BreadcrumbLink href=\"/\">Home</BreadcrumbLink>\n *     </BreadcrumbItem>\n *     <BreadcrumbSeparator />\n *     <BreadcrumbItem>\n *       <BreadcrumbLink asChild>\n *         <Link href=\"/docs\">Docs</Link>\n *       </BreadcrumbLink>\n *     </BreadcrumbItem>\n *     <BreadcrumbSeparator />\n *     <BreadcrumbItem>\n *       <BreadcrumbPage>Installation</BreadcrumbPage>\n *     </BreadcrumbItem>\n *   </BreadcrumbList>\n * </Breadcrumb>\n */\nfunction Breadcrumb({ \"aria-label\": label = \"Breadcrumb\", ...props }: ComponentProps<\"nav\">) {\n  return <nav data-slot=\"breadcrumb\" aria-label={label} {...props} />;\n}\nfunction BreadcrumbList({ className, ...props }: ComponentProps<\"ol\">) {\n  return (\n    <ol\n      data-slot=\"breadcrumb-list\"\n      className={cn(\n        \"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5\",\n        className\n      )}\n      {...props}\n    />\n  );\n}\nfunction BreadcrumbItem({ className, ...props }: ComponentProps<\"li\">) {\n  return (\n    <li\n      data-slot=\"breadcrumb-item\"\n      className={cn(\"inline-flex items-center gap-1.5\", className)}\n      {...props}\n    />\n  );\n}\ninterface BreadcrumbLinkProps extends ComponentProps<\"a\"> {\n  /** Render the single child (next/link, a router Link) with the link styles instead. */\n  asChild?: boolean;\n}\n/** A link to a level above the current page. Pass `asChild` to use your framework's link component. */\nfunction BreadcrumbLink({ asChild = false, className, ...props }: BreadcrumbLinkProps) {\n  const Comp = asChild ? Slot : \"a\";\n  return (\n    <Comp\n      data-slot=\"breadcrumb-link\"\n      className={cn(\n        \"hover:text-foreground rounded-md transition-colors outline-none motion-reduce:transition-none\",\n        \"focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n        className\n      )}\n      {...props}\n    />\n  );\n}\n/** The current page: plain text, announced with `aria-current=\"page\"`. */\nfunction BreadcrumbPage({ className, ...props }: ComponentProps<\"span\">) {\n  return (\n    <span\n      data-slot=\"breadcrumb-page\"\n      aria-current=\"page\"\n      className={cn(\"text-foreground font-normal\", className)}\n      {...props}\n    />\n  );\n}\n/** The mark between two items, hidden from assistive tech. A chevron unless you pass children. */\nfunction BreadcrumbSeparator({ children, className, ...props }: ComponentProps<\"li\">) {\n  return (\n    <li\n      data-slot=\"breadcrumb-separator\"\n      role=\"presentation\"\n      aria-hidden=\"true\"\n      className={cn(\"[&>svg]:size-3.5\", className)}\n      {...props}\n    >\n      {children ?? <ChevronRightIcon />}\n    </li>\n  );\n}\ninterface BreadcrumbEllipsisProps extends ComponentProps<\"span\"> {\n  /** Text for screen readers in place of the dots. */\n  label?: string;\n}\n/**\n * Stands in for levels left out of a long trail. The dots are hidden from\n * assistive tech and `label` is read instead, so it can also name a menu\n * trigger wrapped around it that lists the hidden levels.\n */\nfunction BreadcrumbEllipsis({ label = \"More\", className, ...props }: BreadcrumbEllipsisProps) {\n  return (\n    <span\n      data-slot=\"breadcrumb-ellipsis\"\n      className={cn(\"flex size-9 items-center justify-center\", className)}\n      {...props}\n    >\n      <MoreHorizontalIcon aria-hidden=\"true\" className=\"size-4\" />\n      <span className=\"sr-only\">{label}</span>\n    </span>\n  );\n}\nexport {\n  Breadcrumb,\n  BreadcrumbEllipsis,\n  BreadcrumbItem,\n  BreadcrumbLink,\n  BreadcrumbList,\n  BreadcrumbPage,\n  BreadcrumbSeparator,\n  type BreadcrumbEllipsisProps,\n  type BreadcrumbLinkProps,\n};\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}