{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "navbar-with-search", "type": "registry:ui", "title": "Navbar With Search", "description": "A navigation bar with integrated search input and keyboard shortcut indicator.", "dependencies": [ "lucide-react" ], "registryDependencies": [ "button" ], "files": [ { "path": "registry/ruixenui/navbar-with-search.tsx", "content": "\"use client\";\n\nimport * as React from \"react\";\nimport Link from \"next/link\";\nimport { Search } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/components/ui/button\";\n\nexport interface NavbarWithSearchProps {\n logo?: React.ReactNode;\n links?: { label: string; href: string; active?: boolean }[];\n placeholder?: string;\n shortcut?: string;\n onSearch?: (value: string) => void;\n actions?: React.ReactNode;\n className?: string;\n}\n\nexport default function NavbarWithSearch({\n logo = Logo,\n links = [\n { label: \"Home\", href: \"#\", active: true },\n { label: \"Docs\", href: \"#\" },\n { label: \"Components\", href: \"#\" },\n ],\n placeholder = \"Search...\",\n shortcut = \"⌘K\",\n onSearch,\n actions,\n className,\n}: NavbarWithSearchProps) {\n const [value, setValue] = React.useState(\"\");\n\n return (\n
\n
\n
\n \n {logo}\n \n \n
\n
\n \n {actions ?? }\n
\n
\n
\n );\n}\n", "type": "registry:ui", "target": "components/ruixen/navbar-with-search.tsx" } ] }