{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navbar-01",
  "title": "Navbar — Responsive",
  "author": "SAASTRO <https://saastro.io>",
  "description": "Responsive navbar with desktop navigation and mobile hamburger menu.",
  "registryDependencies": [
    "@saastro/button",
    "@saastro/sheet"
  ],
  "files": [
    {
      "path": "registry/default/blocks/navbar-01.tsx",
      "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Button, buttonVariants } from \"@/components/ui/button\";\nimport { Sheet, SheetContent, SheetTrigger } from \"@/components/ui/sheet\";\nimport { cn } from \"@/lib/utils\";\n\ntype NavLink = {\n  label: string;\n  href: string;\n};\n\ntype Navbar01Props = {\n  logo?: ReactNode;\n  links: NavLink[];\n  cta?: { label: string; href: string };\n  className?: string;\n};\n\nfunction MenuIcon() {\n  return (\n    <svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width=\"24\"\n      height=\"24\"\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth=\"2\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n    >\n      <line x1=\"4\" x2=\"20\" y1=\"12\" y2=\"12\" />\n      <line x1=\"4\" x2=\"20\" y1=\"6\" y2=\"6\" />\n      <line x1=\"4\" x2=\"20\" y1=\"18\" y2=\"18\" />\n    </svg>\n  );\n}\n\nexport function Navbar01({ logo, links, cta, className }: Navbar01Props) {\n  return (\n    <header\n      className={cn(\n        \"sticky top-0 z-50 w-full border-b bg-background/95 px-6 backdrop-blur\",\n        className,\n      )}\n    >\n      <div className=\"mx-auto flex h-16 max-w-6xl items-center justify-between\">\n        <div className=\"flex items-center gap-8\">\n          {logo && <div className=\"font-bold\">{logo}</div>}\n          <nav className=\"hidden items-center gap-6 md:flex\">\n            {links.map((link) => (\n              <a\n                key={link.label}\n                href={link.href}\n                className=\"text-sm text-muted-foreground transition-colors hover:text-foreground\"\n              >\n                {link.label}\n              </a>\n            ))}\n          </nav>\n        </div>\n        <div className=\"flex items-center gap-4\">\n          {cta && (\n            <a\n              href={cta.href}\n              className={cn(buttonVariants(), \"hidden md:inline-flex\")}\n            >\n              {cta.label}\n            </a>\n          )}\n          <Sheet>\n            <SheetTrigger\n              render={\n                <Button variant=\"ghost\" size=\"icon\" className=\"md:hidden\" />\n              }\n            >\n              <MenuIcon />\n              <span className=\"sr-only\">Open menu</span>\n            </SheetTrigger>\n            <SheetContent side=\"right\">\n              <nav className=\"flex flex-col gap-4 pt-8\">\n                {links.map((link) => (\n                  <a\n                    key={link.label}\n                    href={link.href}\n                    className=\"text-lg font-medium\"\n                  >\n                    {link.label}\n                  </a>\n                ))}\n                {cta && (\n                  <a href={cta.href} className={cn(buttonVariants(), \"mt-4\")}>\n                    {cta.label}\n                  </a>\n                )}\n              </nav>\n            </SheetContent>\n          </Sheet>\n        </div>\n      </div>\n    </header>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/blocks/navbar-01.tsx"
    }
  ],
  "meta": {
    "group": "Navigation",
    "iframeHeight": "480px"
  },
  "docs": "Import: `import { Navbar01 } from '@/components/blocks/navbar-01'`. Props: logo?, links [{label, href}], cta?, className?. Interactive (mobile Sheet, Base UI) — in Astro hydrate with client:load.",
  "categories": [
    "navbar",
    "landing"
  ],
  "type": "registry:block"
}