{
  "name": "breadcrumb",
  "type": "registry:ui",
  "framework": "react",
  "title": "Breadcrumb",
  "description": "The path from the top of a section to the current page, as a row of links.",
  "files": [
    {
      "path": "ui/breadcrumb.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport interface BreadcrumbProps extends React.ComponentProps<\"nav\"> {\n  /** Accessible name of the landmark. */\n  label?: string\n}\n\n/*\n * Where the page sits, as an ordered list inside a named `<nav>`. The\n * separator is drawn by the stylesheet, so it is never read out and never\n * copied with the text; a slash reads the same in either direction.\n */\nconst Breadcrumb = React.forwardRef<HTMLElement, BreadcrumbProps>(\n  ({ className, label = \"Breadcrumb\", children, ...props }, ref) => (\n    <nav ref={ref} aria-label={label} className={className} {...props}>\n      <ol className=\"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-sm leading-5\">\n        {children}\n      </ol>\n    </nav>\n  )\n)\nBreadcrumb.displayName = \"Breadcrumb\"\n\nexport interface BreadcrumbItemProps extends React.ComponentProps<\"li\"> {\n  /** Where this level leads. Omit it to pass a router link as the child. */\n  href?: string\n  /** Marks the page the reader is on; it is text, not a link. */\n  current?: boolean\n}\n\nconst BreadcrumbItem = React.forwardRef<HTMLLIElement, BreadcrumbItemProps>(\n  ({ className, href, current = false, children, ...props }, ref) => (\n    <li\n      ref={ref}\n      className={cn(\n        // A router's own link, passed as the child, is styled from here.\n        \"inline-flex min-w-0 items-center gap-1.5 text-newt-text-secondary [&:not(:first-child)]:before:text-newt-text-muted [&:not(:first-child)]:before:content-['/'] [&_a:focus-visible]:outline [&_a:focus-visible]:outline-2 [&_a:focus-visible]:outline-offset-2 [&_a:focus-visible]:outline-newt-text-link [&_a:hover]:text-newt-text-primary [&_a:hover]:underline [&_a]:rounded-[var(--newt-radius-sm)] [&_a]:text-newt-text-secondary [&_a]:no-underline [&_a]:transition-colors [&_a]:duration-fast [&_a]:ease-newt\",\n        className\n      )}\n      {...props}\n    >\n      {current ? (\n        <span\n          aria-current=\"page\"\n          className=\"truncate font-semibold text-newt-text-primary\"\n        >\n          {children}\n        </span>\n      ) : href === undefined ? (\n        children\n      ) : (\n        <a href={href}>{children}</a>\n      )}\n    </li>\n  )\n)\nBreadcrumbItem.displayName = \"BreadcrumbItem\"\n\nexport { Breadcrumb, BreadcrumbItem }\n",
      "type": "registry:ui"
    }
  ]
}