{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "navbar-breadcrumb", "type": "registry:ui", "title": "Navbar Breadcrumb", "description": "A navigation bar with breadcrumb navigation for multi-level hierarchy.", "dependencies": [ "lucide-react" ], "registryDependencies": [ "button", "avatar" ], "files": [ { "path": "registry/ruixenui/navbar-breadcrumb.tsx", "content": "\"use client\";\n\nimport * as React from \"react\";\nimport Link from \"next/link\";\nimport { ChevronRight, Bell } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/components/ui/button\";\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\n\nexport interface NavbarBreadcrumbProps {\n logo?: React.ReactNode;\n breadcrumbs?: { label: string; href?: string }[];\n user?: {\n name: string;\n avatar?: string;\n initials?: string;\n };\n notificationCount?: number;\n className?: string;\n}\n\nexport default function NavbarBreadcrumb({\n logo = Logo,\n breadcrumbs = [\n { label: \"Personal Account\", href: \"#\" },\n { label: \"Projects\", href: \"#\" },\n { label: \"Website\" },\n ],\n user = { name: \"John\", initials: \"JD\" },\n notificationCount = 0,\n className,\n}: NavbarBreadcrumbProps) {\n return (\n \n \n \n \n {logo}\n \n \n {breadcrumbs.map((item, index) => (\n \n {index > 0 && (\n \n )}\n {item.href ? (\n \n {item.label}\n \n ) : (\n {item.label}\n )}\n \n ))}\n \n \n \n \n \n {notificationCount > 0 && (\n \n {notificationCount}\n \n )}\n \n \n \n {user.initials}\n \n \n \n \n );\n}\n", "type": "registry:ui", "target": "components/ruixen/navbar-breadcrumb.tsx" } ] }