{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "navbar-08", "type": "registry:block", "dependencies": [ "lucide-react" ], "registryDependencies": [ "utils", "button", "https://launchmvpfast.com/r/use-is-mac.json", "separator", "label", "switch", "popover" ], "files": [ { "path": "registry/default/blocks/navbar/navbar-08.tsx", "content": "import { buttonVariants, Button } from '@/registry/default/ui/button'\r\nimport { cn } from '@/lib/utils'\r\nimport { Search } from './search'\r\nimport { Separator } from '@/registry/default/ui/separator'\r\nimport { Switch } from '@/registry/default/ui/switch'\r\nimport { Label } from '@/registry/default/ui/label'\r\nimport { BellIcon, PlusCircleIcon, SettingsIcon } from 'lucide-react'\r\nimport { MobileNav } from './mobile-nav'\r\n// import Link from 'next/link'\r\n\r\n// Sample navigation links, you can replace these with your actual links\r\n// you can add more categories it will be rendered in mobile nav\r\nconst navigationLinks = [\r\n {\r\n name: 'Menu',\r\n items: [\r\n { href: '#', label: 'Products', active: true },\r\n { href: '#', label: 'Docs' },\r\n { href: '#', label: 'Settings' },\r\n { href: '#', label: 'Notifications' },\r\n ],\r\n },\r\n]\r\n\r\nexport default function Navbar() {\r\n const Link = 'a' // if using Next.js remove this line. you can use the Link component from 'next/link'\r\n\r\n return (\r\n
\r\n
\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n )\r\n}\r\n", "type": "registry:component", "target": "components/navbar.tsx" }, { "path": "registry/default/blocks/navbar/search.tsx", "content": "'use client'\r\n\r\nimport { Button } from '@/registry/default/ui/button'\r\nimport { cn } from '@/lib/utils'\r\nimport { useIsMac } from '@/registry/default/hooks/use-is-mac'\r\n\r\nexport function Search({ className }: React.ComponentProps<'button'>) {\r\n const isMac = useIsMac()\r\n\r\n return (\r\n \r\n Search...\r\n Search...\r\n \r\n \r\n )\r\n}\r\n\r\nfunction CommandMenuKbd({ className, ...props }: React.ComponentProps<'kbd'>) {\r\n return (\r\n \r\n )\r\n}\r\n", "type": "registry:component", "target": "components/search.tsx" }, { "path": "registry/default/blocks/navbar/mobile-nav.tsx", "content": "'use client'\r\n\r\nimport React from 'react'\r\nimport {\r\n Popover,\r\n PopoverContent,\r\n PopoverTrigger,\r\n} from '@/registry/default/ui/popover'\r\nimport { Button } from '@/registry/default/ui/button'\r\nimport { cn } from '@/lib/utils'\r\n// import Link from 'next/link'\r\n\r\ntype MobileNavProps = {\r\n nav: {\r\n name: string\r\n items: {\r\n label: string\r\n href: string\r\n }[]\r\n }[]\r\n}\r\n\r\nexport function MobileNav({ nav }: MobileNavProps) {\r\n const Link = 'a' // if using Next.js remove this line. you can use the Link component from 'next/link'\r\n\r\n const [open, setOpen] = React.useState(false)\r\n\r\n return (\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n Toggle Menu\r\n
\r\n \r\n
\r\n \r\n
\r\n {nav.map((category, index) => (\r\n
\r\n

\r\n {category.name}\r\n

\r\n
\r\n {category.items.map((item, index) => (\r\n setOpen(false)}\r\n >\r\n {item.label}\r\n \r\n ))}\r\n
\r\n
\r\n ))}\r\n
\r\n \r\n
\r\n )\r\n}\r\n", "type": "registry:component", "target": "components/mobile-nav.tsx" } ] }