{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "breadcrumb",
  "title": "Breadcrumb",
  "description": "Trail of links to the current page; one separator prop restyles the whole trail.",
  "dependencies": [
    "lucide-react",
    "radix-ui"
  ],
  "registryDependencies": [
    "@ikas/utils"
  ],
  "files": [
    {
      "path": "registry/ui/breadcrumb.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Slot } from \"radix-ui\"\nimport { ChevronRightIcon, MoreHorizontalIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/** Items with an icon line it up with the label; plain text items stay inline so `truncate` keeps working. */\nconst withIcon =\n  \"has-[>svg]:inline-flex has-[>svg]:items-center has-[>svg]:gap-1.5 [&>svg]:shrink-0 [&>svg:not([class*='size-'])]:size-3.5\"\n\nconst SeparatorContext = React.createContext<React.ReactNode>(null)\n\ntype BreadcrumbProps = React.ComponentProps<\"nav\"> & {\n  /** Mark between every item of the trail, e.g. `<SlashIcon />`. Change it here and all separators follow. Defaults to a chevron. */\n  separator?: React.ReactNode\n}\n\n/** The trail's landmark. Pass `aria-label` to name it in another language. */\nfunction Breadcrumb({ separator = null, \"aria-label\": ariaLabel = \"Sayfa yolu\", ...props }: BreadcrumbProps) {\n  return (\n    <SeparatorContext.Provider value={separator}>\n      <nav aria-label={ariaLabel} data-slot=\"breadcrumb\" {...props} />\n    </SeparatorContext.Provider>\n  )\n}\n\nfunction BreadcrumbList({ className, ...props }: React.ComponentProps<\"ol\">) {\n  return (\n    <ol\n      data-slot=\"breadcrumb-list\"\n      className={cn(\n        \"flex flex-wrap items-center gap-1.5 text-[13px] break-words text-muted-foreground\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction BreadcrumbItem({ className, ...props }: React.ComponentProps<\"li\">) {\n  return (\n    <li\n      data-slot=\"breadcrumb-item\"\n      className={cn(\"inline-flex items-center gap-1\", className)}\n      {...props}\n    />\n  )\n}\n\ntype BreadcrumbLinkProps = React.ComponentProps<\"a\"> & {\n  /** Render the child (e.g. `next/link`) instead of an `<a>`, merging the styles onto it. */\n  asChild?: boolean\n}\n\nfunction BreadcrumbLink({ asChild = false, className, ...props }: BreadcrumbLinkProps) {\n  const Comp = asChild ? Slot.Root : \"a\"\n  return (\n    <Comp\n      data-slot=\"breadcrumb-link\"\n      className={cn(\n        \"rounded-sm transition-colors duration-150 ease-out outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/30\",\n        withIcon,\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/** The current page: the last item, not a link. */\nfunction BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n  return (\n    <span\n      data-slot=\"breadcrumb-page\"\n      role=\"link\"\n      aria-disabled=\"true\"\n      aria-current=\"page\"\n      className={cn(\"font-medium text-foreground\", withIcon, className)}\n      {...props}\n    />\n  )\n}\n\n/** The trail's separator (`Breadcrumb separator`, a chevron by default); children override it for this one. */\nfunction BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<\"li\">) {\n  const separator = React.useContext(SeparatorContext)\n  return (\n    <li\n      data-slot=\"breadcrumb-separator\"\n      role=\"presentation\"\n      aria-hidden=\"true\"\n      className={cn(\"text-icon [&>svg]:size-3.5\", className)}\n      {...props}\n    >\n      {children ?? separator ?? <ChevronRightIcon />}\n    </li>\n  )\n}\n\n/** Stands in for collapsed items; put it in a `DropdownMenuTrigger` to list them. */\nfunction BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<\"span\">) {\n  return (\n    <span\n      data-slot=\"breadcrumb-ellipsis\"\n      role=\"presentation\"\n      aria-hidden=\"true\"\n      className={cn(\"flex size-6 items-center justify-center\", className)}\n      {...props}\n    >\n      <MoreHorizontalIcon className=\"size-4\" />\n      <span className=\"sr-only\">Diğer sayfalar</span>\n    </span>\n  )\n}\n\nexport {\n  Breadcrumb,\n  BreadcrumbEllipsis,\n  BreadcrumbItem,\n  BreadcrumbLink,\n  BreadcrumbList,\n  BreadcrumbPage,\n  BreadcrumbSeparator,\n  type BreadcrumbLinkProps,\n  type BreadcrumbProps,\n}\n",
      "type": "registry:ui"
    }
  ],
  "docs": "https://builders.ikas.com/tr/docs/app-development/ui-kit/components/breadcrumb",
  "categories": [
    "primitives",
    "navigation"
  ],
  "type": "registry:ui"
}