{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navbar-section-v4",
  "title": "Navbar Section v4",
  "description": "Fixed bottom centered dock nav with frosted pill container, hairline active indicator, responsive links, and primary CTA.",
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/navbar-section-v4/page.tsx",
      "content": "/* inspired by useghost.sh */\n\nimport LoremDemo from \"./components/navbar-lorem-demo\"\nimport NavbarSectionV4 from \"./components/navbar-section-v4\"\n\nexport default function Page() {\n  return (\n    <>\n      <NavbarSectionV4 />\n      <div className=\"pb-32 sm:pb-28\">\n        <LoremDemo />\n      </div>\n    </>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/navbar-section-v4/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/navbar-section-v4/components/navbar-section-v4.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport Link from \"next/link\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { cn } from \"@/lib/utils\"\n\ntype NavItem = {\n  label: string\n  href: string\n  external?: boolean\n  signInSpacing?: boolean\n}\n\nconst NAV_ITEMS: NavItem[] = [\n  { label: \"Home\", href: \"#\" },\n  { label: \"Pricing\", href: \"#\" },\n  { label: \"Docs\", href: \"#\", external: true },\n  { label: \"Sign in\", href: \"#\", signInSpacing: true },\n]\n\nconst linkClass = cn(\n  \"relative shrink-0 rounded-full px-2 py-1.5 text-xs whitespace-nowrap text-muted-foreground transition-colors hover:text-foreground\",\n\n  \"after:pointer-events-none after:absolute after:right-2 after:bottom-1 after:left-2 after:h-px after:bg-foreground after:opacity-0 after:transition-opacity sm:px-3 sm:text-sm sm:after:right-3 sm:after:-bottom-[5px] sm:after:left-3\",\n  \"aria-[current=page]:text-foreground aria-[current=page]:after:opacity-100\"\n)\n\nexport default function NavbarSectionV4() {\n  const [activeIndex, setActiveIndex] = useState(0)\n\n  return (\n    <nav\n      aria-label=\"Primary\"\n      className={cn(\n        \"fixed left-1/2 z-40 flex justify-center\",\n        \"-translate-x-1/2\",\n        \"bottom-[max(0.75rem,env(safe-area-inset-bottom,0px))] w-[calc(100vw-1rem)] max-w-xl\",\n        \"sm:bottom-6 sm:w-auto sm:max-w-none\"\n      )}\n    >\n      <div\n        className={cn(\n          \"flex max-w-full flex-nowrap items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-full border border-foreground/10 bg-background/80 px-1 py-1 pb-2 pl-2 shadow-lg shadow-foreground/5 backdrop-blur\",\n          \"touch-pan-x [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\",\n          \"sm:touch-auto sm:gap-1 sm:overflow-visible sm:p-1 sm:pb-1 sm:pl-3\"\n        )}\n      >\n        {NAV_ITEMS.map((item, i) => {\n          const shared = cn(linkClass, item.signInSpacing && \"ml-1 sm:ml-2\")\n          const handleClick = (e: { preventDefault: () => void }) => {\n            if (!item.external) e.preventDefault()\n            setActiveIndex(i)\n          }\n          if (item.external) {\n            return (\n              <a\n                key={item.label}\n                aria-current={activeIndex === i ? \"page\" : undefined}\n                className={shared}\n                href={item.href}\n                rel=\"noreferrer\"\n                target=\"_blank\"\n                onClick={handleClick}\n              >\n                {item.label}\n              </a>\n            )\n          }\n          return (\n            <a\n              key={item.label}\n              aria-current={activeIndex === i ? \"page\" : undefined}\n              className={shared}\n              href={item.href}\n              onClick={handleClick}\n            >\n              {item.label}\n            </a>\n          )\n        })}\n        <Button\n          asChild\n          className=\"h-7 shrink-0 gap-1 rounded-full px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 sm:h-8 sm:px-3 sm:text-sm\"\n          size=\"sm\"\n        >\n          <Link href=\"#\" onClick={(e) => e.preventDefault()}>\n            Get started\n          </Link>\n        </Button>\n      </div>\n    </nav>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/navbar-section-v4/components/navbar-section-v4.tsx"
    },
    {
      "path": "registry/new-york/blocks/navbar-section-v4/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\nfunction Block({ rows = 1 }: { rows?: number }) {\n  return (\n    <div className=\"space-y-2\">\n      {Array.from({ length: rows }, (_, i) => (\n        <div key={i} 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            {[0, 1, 2].map((i) => (\n              <Block key={i} 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-v4/components/navbar-lorem-demo.tsx"
    }
  ],
  "type": "registry:block"
}