{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navbar-section-v9",
  "title": "Navbar Section v9",
  "description": "Two-column navbar with text-only brand left, nav links and outline Sign in CTA right, and a full-width Resources mega menu with 3-column labeled links.",
  "registryDependencies": [
    "button",
    "sheet"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/navbar-section-v9/page.tsx",
      "content": "import NavbarLoremDemo from \"./components/navbar-lorem-demo\"\nimport NavbarSectionV9 from \"./components/navbar-section-v9\"\n\nexport default function Page() {\n  return (\n    <>\n      <NavbarSectionV9 />\n      <NavbarLoremDemo />\n    </>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/navbar-section-v9/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/navbar-section-v9/components/navbar-section-v9.tsx",
      "content": "\"use client\"\n\nimport { useRef, useState } from \"react\"\nimport Link from \"next/link\"\n\nimport { ChevronDownIcon, XIcon } from \"lucide-react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Sheet,\n  SheetClose,\n  SheetContent,\n  SheetHeader,\n  SheetTitle,\n} from \"@/components/ui/sheet\"\nimport { cn } from \"@/lib/utils\"\n\nconst SITE_NAME = \"uiception\"\nconst LOGO_HREF = \"#\"\n\nconst NAV_LINKS = [\n  { label: \"Developers\", href: \"#\" },\n  { label: \"Pricing\", href: \"#\" },\n] as const\n\nconst RESOURCES_COLUMNS = [\n  {\n    label: \"Company\",\n    links: [\n      { label: \"Team\", href: \"#\" },\n      { label: \"Research\", href: \"#\" },\n      { label: \"Security\", href: \"#\" },\n    ],\n  },\n  {\n    label: \"Start building\",\n    links: [\n      { label: \"Developers\", href: \"#\" },\n      { label: \"Documentation\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n    ],\n  },\n  {\n    label: \"Resources\",\n    links: [\n      { label: \"Blog\", href: \"#\" },\n      { label: \"Success stories\", href: \"#\" },\n      { label: \"Interactive Avatars\", href: \"#\" },\n    ],\n  },\n] as const\n\nconst CTA = { label: \"Sign in\", href: \"#\" }\n\nconst linkClass = cn(\n  \"text-sm text-muted-foreground transition-colors hover:text-foreground\",\n  \"aria-[current=page]:text-foreground\"\n)\n\nconst sheetLinkClass = cn(\n  \"block py-2 text-lg font-medium tracking-tight text-foreground transition-colors hover:text-muted-foreground\",\n  \"aria-[current=page]:text-muted-foreground\"\n)\n\nconst sheetSubLinkClass =\n  \"block rounded-md py-1.5 pl-3 text-sm font-semibold text-foreground transition-colors hover:text-muted-foreground\"\n\nconst megaLinkClass =\n  \"block text-right text-base font-semibold text-foreground transition-colors hover:text-muted-foreground\"\n\nfunction HamburgerIcon({ open }: { open: boolean }) {\n  return (\n    <div className=\"flex size-4 flex-col items-center justify-center gap-1\">\n      <span\n        className={cn(\n          \"block h-px w-4 bg-current transition-all duration-300 ease-in-out\",\n          open ? \"translate-y-[5px] rotate-45\" : \"\"\n        )}\n      />\n      <span\n        className={cn(\n          \"block h-px w-4 bg-current transition-all duration-300 ease-in-out\",\n          open ? \"scale-x-0 opacity-0\" : \"\"\n        )}\n      />\n      <span\n        className={cn(\n          \"block h-px w-4 bg-current transition-all duration-300 ease-in-out\",\n          open ? \"-translate-y-[5px] -rotate-45\" : \"\"\n        )}\n      />\n    </div>\n  )\n}\n\nfunction ResourcesPanel({\n  onMouseEnter,\n  onMouseLeave,\n}: {\n  onMouseEnter: () => void\n  onMouseLeave: () => void\n}) {\n  return (\n    <section\n      aria-label=\"Resources menu\"\n      className=\"animate-resources-panel-in w-full bg-background\"\n      onMouseEnter={onMouseEnter}\n      onMouseLeave={onMouseLeave}\n    >\n      <div className=\"mx-auto flex w-full max-w-7xl justify-end px-6 py-12\">\n        <div className=\"grid grid-cols-1 gap-10 sm:grid-cols-3 sm:gap-16\">\n          {RESOURCES_COLUMNS.map((column) => (\n            <div key={column.label} className=\"text-right\">\n              <p className=\"mb-4 text-xs text-muted-foreground\">\n                {column.label}\n              </p>\n              <ul className=\"flex flex-col gap-5\">\n                {column.links.map((link) => (\n                  <li key={link.label}>\n                    <a\n                      href={link.href}\n                      className={megaLinkClass}\n                      onClick={(e) => e.preventDefault()}\n                    >\n                      {link.label}\n                    </a>\n                  </li>\n                ))}\n              </ul>\n            </div>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n\nexport default function NavbarSectionV9() {\n  const [menuOpen, setMenuOpen] = useState(false)\n  const [resourcesOpen, setResourcesOpen] = useState(false)\n  const [mobileResourcesOpen, setMobileResourcesOpen] = useState(false)\n  const closeTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>(\n    undefined\n  )\n\n  const openResources = () => {\n    clearTimeout(closeTimerRef.current)\n    setResourcesOpen(true)\n  }\n\n  const scheduleResourcesClose = () => {\n    clearTimeout(closeTimerRef.current)\n    closeTimerRef.current = setTimeout(() => setResourcesOpen(false), 100)\n  }\n\n  return (\n    <>\n      <style>{`\n        @keyframes resources-panel-in {\n          from { opacity: 0; }\n          to   { opacity: 1; }\n        }\n        .animate-resources-panel-in {\n          animation: resources-panel-in 0.35s ease both;\n        }\n      `}</style>\n\n      <Sheet open={menuOpen} onOpenChange={setMenuOpen}>\n        <SheetContent\n          aria-describedby={undefined}\n          showCloseButton={false}\n          side=\"right\"\n          className=\"flex w-[min(100vw,20rem)] flex-col gap-0 border-border/80 bg-background p-0 sm:max-w-xs\"\n        >\n          <SheetHeader className=\"border-b border-border/80 px-5 py-4 text-left\">\n            <SheetTitle className=\"text-base font-medium tracking-tight\">\n              {SITE_NAME}\n            </SheetTitle>\n          </SheetHeader>\n\n          <SheetClose asChild>\n            <button\n              type=\"button\"\n              aria-label=\"Close menu\"\n              className=\"absolute top-4 right-4 z-10 inline-flex rounded-md p-2 text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none\"\n            >\n              <XIcon className=\"size-5\" strokeWidth={1.5} aria-hidden />\n            </button>\n          </SheetClose>\n\n          <nav aria-label=\"Primary\" className=\"flex flex-1 flex-col gap-1 p-4\">\n            {NAV_LINKS.map((link) => (\n              <a\n                key={link.label}\n                href={link.href}\n                className={sheetLinkClass}\n                onClick={(e) => {\n                  e.preventDefault()\n                  setMenuOpen(false)\n                }}\n              >\n                {link.label}\n              </a>\n            ))}\n\n            <div>\n              <button\n                type=\"button\"\n                className={cn(\n                  sheetLinkClass,\n                  \"flex w-full items-center justify-between\"\n                )}\n                onClick={() => setMobileResourcesOpen((v) => !v)}\n              >\n                Resources\n                <ChevronDownIcon\n                  className={cn(\n                    \"size-4 transition-transform duration-200\",\n                    mobileResourcesOpen ? \"rotate-180\" : \"\"\n                  )}\n                />\n              </button>\n              {mobileResourcesOpen && (\n                <div className=\"mt-2 flex flex-col gap-4\">\n                  {RESOURCES_COLUMNS.map((column) => (\n                    <div key={column.label}>\n                      <p className=\"mb-2 pl-3 text-xs text-muted-foreground\">\n                        {column.label}\n                      </p>\n                      <ul className=\"flex flex-col gap-1.5\">\n                        {column.links.map((link) => (\n                          <li key={link.label}>\n                            <a\n                              href={link.href}\n                              className={sheetSubLinkClass}\n                              onClick={(e) => {\n                                e.preventDefault()\n                                setMenuOpen(false)\n                              }}\n                            >\n                              {link.label}\n                            </a>\n                          </li>\n                        ))}\n                      </ul>\n                    </div>\n                  ))}\n                </div>\n              )}\n            </div>\n          </nav>\n\n          <div className=\"border-t border-border/80 p-4 pb-[max(1rem,env(safe-area-inset-bottom,0px))]\">\n            <Button\n              asChild\n              variant=\"default\"\n              className=\"h-10 w-full\"\n            >\n              <Link\n                href={CTA.href}\n                onClick={(e) => {\n                  e.preventDefault()\n                  setMenuOpen(false)\n                }}\n              >\n                {CTA.label}\n              </Link>\n            </Button>\n          </div>\n        </SheetContent>\n      </Sheet>\n\n      <div className=\"sticky top-0 z-50 bg-background\">\n        <header>\n          <div className=\"mx-auto grid h-16 w-full max-w-7xl grid-cols-[1fr_auto] items-center gap-4 px-6\">\n          <Link\n            href={LOGO_HREF}\n            aria-label={`${SITE_NAME} home`}\n            className=\"text-xl font-medium tracking-tight text-foreground\"\n            onClick={(e) => e.preventDefault()}\n          >\n            {SITE_NAME}\n          </Link>\n\n          <div className=\"flex shrink-0 items-center justify-end gap-6\">\n            <nav\n              aria-label=\"Primary\"\n              className=\"hidden items-center gap-6 md:flex\"\n            >\n              {NAV_LINKS.map((link) => (\n                <a\n                  key={link.label}\n                  href={link.href}\n                  className={cn(linkClass, \"shrink-0\")}\n                  onClick={(e) => e.preventDefault()}\n                >\n                  {link.label}\n                </a>\n              ))}\n\n              <button\n                type=\"button\"\n                aria-expanded={resourcesOpen}\n                aria-haspopup=\"true\"\n                className={cn(\n                  linkClass,\n                  \"inline-flex cursor-default items-center\",\n                  resourcesOpen && \"text-foreground\"\n                )}\n                onMouseEnter={openResources}\n                onMouseLeave={scheduleResourcesClose}\n                onFocus={openResources}\n                onBlur={scheduleResourcesClose}\n              >\n                Resources\n              </button>\n            </nav>\n\n            <Button\n              asChild\n              variant=\"default\"\n              className=\"hidden h-8 px-4 text-sm md:inline-flex\"\n            >\n              <Link href={CTA.href} onClick={(e) => e.preventDefault()}>\n                {CTA.label}\n              </Link>\n            </Button>\n\n            <button\n              type=\"button\"\n              aria-expanded={menuOpen}\n              aria-label={menuOpen ? \"Close menu\" : \"Open menu\"}\n              className=\"inline-flex shrink-0 items-center justify-center text-muted-foreground transition-colors hover:text-foreground md:hidden\"\n              onClick={() => setMenuOpen((open) => !open)}\n            >\n              <HamburgerIcon open={menuOpen} />\n            </button>\n          </div>\n        </div>\n        </header>\n\n        {resourcesOpen && (\n          <ResourcesPanel\n            onMouseEnter={openResources}\n            onMouseLeave={scheduleResourcesClose}\n          />\n        )}\n      </div>\n    </>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/navbar-section-v9/components/navbar-section-v9.tsx"
    },
    {
      "path": "registry/new-york/blocks/navbar-section-v9/components/navbar-lorem-demo.tsx",
      "content": "import { Instrument_Serif } from \"next/font/google\"\n\nconst instrumentSerif = Instrument_Serif({\n  subsets: [\"latin\"],\n  weight: [\"400\"],\n})\n\nfunction Spacer({ size = \"md\" }: { size?: \"sm\" | \"md\" | \"lg\" | \"xl\" }) {\n  const heights = { sm: \"h-4\", md: \"h-8\", lg: \"h-16\", xl: \"h-28\" }\n  return <div className={heights[size]} />\n}\n\nconst ROW_KEYS = [\"a\", \"b\", \"c\", \"d\", \"e\"] as const\nconst COLUMN_KEYS = [\"left\", \"center\", \"right\"] as const\n\nfunction Block({ rows = 1 }: { rows?: number }) {\n  return (\n    <div className=\"space-y-2\">\n      {ROW_KEYS.slice(0, rows).map((id) => (\n        <div key={id} className=\"h-3\" />\n      ))}\n    </div>\n  )\n}\n\nexport default function NavbarLoremDemo() {\n  return (\n    <main className=\"px-4 py-4 md:py-6 lg:py-8\">\n      <article\n        aria-label=\"Sample document preview\"\n        className=\"mx-auto w-full max-w-2xl rounded-none border border-border bg-card text-card-foreground shadow-sm\"\n      >\n        <header className=\"px-8 py-8 pt-10 sm:px-10\">\n          <span className={`${instrumentSerif.className} text-2xl text-foreground`}>\n            uiception.com\n          </span>\n        </header>\n\n        <div className=\"px-8 py-12 sm:px-10\">\n          <Spacer size=\"xl\" />\n          <Block rows={3} />\n          <Spacer size=\"xl\" />\n          <Block rows={3} />\n          <Spacer size=\"xl\" />\n          <div className=\"grid grid-cols-3 gap-6\">\n            {COLUMN_KEYS.map((id) => (\n              <Block key={id} rows={3} />\n            ))}\n          </div>\n          <Spacer size=\"xl\" />\n          <Block rows={3} />\n          <Spacer size=\"xl\" />\n          <Block rows={3} />\n          <Spacer size=\"xl\" />\n        </div>\n      </article>\n    </main>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/navbar-section-v9/components/navbar-lorem-demo.tsx"
    }
  ],
  "type": "registry:block"
}