{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navigation-01",
  "type": "registry:block",
  "title": "Product Navigation",
  "description": "A compact product header with responsive navigation and a clear workspace call to action.",
  "author": "UIBlocks contributors",
  "registryDependencies": [],
  "dependencies": [
    "lucide-react@0.577.0"
  ],
  "files": [
    {
      "path": "licenses/navigation-01/LICENSE.txt",
      "type": "registry:file",
      "target": "@components/uiblocks/navigation-01/LICENSE.txt",
      "content": "UIBlocks original block: Copyright (c) 2026 UIBlocks contributors. Licensed under the MIT License below.\n\nIncludes source from Blocks.so and its bundled primitives.\nSource: https://github.com/ephraimduncan/blocks\nRevision: 3f759d5171c2391253ec4c772e9e5b3db2bc7c7f\n\nMIT License\n\nCopyright (c) 2025 Ephraim Duncan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "content/components/marketing/navigation-01.tsx",
      "type": "registry:component",
      "target": "@components/uiblocks/navigation-01/navigation-01.tsx",
      "content": "\"use client\";\n\nimport { ArrowUpRight, Layers2, Menu, X } from \"lucide-react\";\nimport { useId, useState } from \"react\";\n\nexport type Navigation01Props = {\n  brand?: string;\n  homeHref?: string;\n  links?: { label: string; href: string }[];\n  actionLabel?: string;\n  actionHref?: string;\n};\n\n/** A responsive product navigation. Supply real section URLs through links. */\nexport default function Navigation01({\n  brand = \"Frame\",\n  homeHref = \"/preview/recipes/tool-landing#frame-top\",\n  links = [\n    { label: \"Features\", href: \"/preview/recipes/tool-landing#features\" },\n    { label: \"Pricing\", href: \"/preview/recipes/tool-landing#pricing\" },\n    { label: \"Questions\", href: \"/preview/recipes/tool-landing#faq\" },\n  ],\n  actionLabel = \"Explore the demo\",\n  actionHref = \"/preview/recipes/tool-workspace\",\n}: Navigation01Props) {\n  const [open, setOpen] = useState(false);\n  const menuId = useId();\n\n  return (\n    <header\n      className=\"w-full border-b border-zinc-200/80 bg-white text-zinc-950 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50\"\n      id=\"frame-top\"\n    >\n      <div className=\"mx-auto flex h-20 max-w-6xl items-center justify-between gap-6 px-6 lg:px-8\">\n        <a\n          className=\"inline-flex items-center gap-2.5 rounded-md text-xl font-semibold tracking-tight outline-offset-4 focus-visible:outline-2 focus-visible:outline-violet-500\"\n          href={homeHref}\n        >\n          <span className=\"grid size-8 place-items-center rounded-lg bg-violet-600 text-white\">\n            <Layers2 aria-hidden=\"true\" className=\"size-4.5\" />\n          </span>\n          {brand}\n        </a>\n        <nav\n          aria-label=\"Product navigation\"\n          className=\"hidden items-center gap-8 md:flex\"\n        >\n          {links.map((link) => (\n            <a\n              className=\"rounded text-sm text-zinc-500 transition-colors hover:text-zinc-950 focus-visible:outline-2 focus-visible:outline-violet-500 dark:text-zinc-400 dark:hover:text-white\"\n              href={link.href}\n              key={link.href}\n            >\n              {link.label}\n            </a>\n          ))}\n        </nav>\n        <div className=\"flex items-center gap-3\">\n          <a\n            className=\"hidden items-center gap-2 rounded-lg bg-zinc-950 px-4 py-2.5 text-sm font-medium text-white transition-colors hover:bg-zinc-800 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-violet-500 sm:inline-flex dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200\"\n            href={actionHref}\n          >\n            {actionLabel}\n            <ArrowUpRight aria-hidden=\"true\" className=\"size-4\" />\n          </a>\n          <button\n            aria-controls={menuId}\n            aria-expanded={open}\n            aria-label={open ? \"Close product menu\" : \"Open product menu\"}\n            className=\"grid size-10 place-items-center rounded-lg border border-zinc-200 hover:bg-zinc-50 focus-visible:outline-2 focus-visible:outline-violet-500 md:hidden dark:border-zinc-700 dark:hover:bg-zinc-900\"\n            onClick={() => setOpen(!open)}\n            type=\"button\"\n          >\n            {open ? (\n              <X aria-hidden=\"true\" className=\"size-5\" />\n            ) : (\n              <Menu aria-hidden=\"true\" className=\"size-5\" />\n            )}\n          </button>\n        </div>\n      </div>\n      {open && (\n        <nav\n          aria-label=\"Mobile product navigation\"\n          className=\"border-t border-zinc-200 px-6 py-4 md:hidden dark:border-zinc-800\"\n          id={menuId}\n        >\n          {links.map((link) => (\n            <a\n              className=\"block rounded-md px-2 py-3 text-sm text-zinc-600 hover:bg-zinc-50 focus-visible:outline-2 focus-visible:outline-violet-500 dark:text-zinc-300 dark:hover:bg-zinc-900\"\n              href={link.href}\n              key={link.href}\n              onClick={() => setOpen(false)}\n            >\n              {link.label}\n            </a>\n          ))}\n          <a\n            className=\"mt-2 inline-flex items-center gap-2 rounded-md px-2 py-3 text-sm font-semibold text-violet-600 dark:text-violet-400\"\n            href={actionHref}\n            onClick={() => setOpen(false)}\n          >\n            {actionLabel}\n            <ArrowUpRight aria-hidden=\"true\" className=\"size-4\" />\n          </a>\n        </nav>\n      )}\n    </header>\n  );\n}\n"
    }
  ],
  "categories": [
    "marketing",
    "marketing",
    "clean-saas"
  ],
  "docs": "Import the default component from @components/uiblocks/navigation-01/navigation-01.tsx. React 19, Tailwind CSS 4, and the standard shadcn CSS theme variables are required. This block is framework-independent React and works in TanStack Start, Vite, and Next.js projects. Connect links or navigation callbacks to your host application. Demo avatars use public image URLs; replace them with your own assets. Demo handlers must be connected to your product. See https://uiblocks.org/marketing/navigation-01 for content guidelines and source attribution.",
  "meta": {
    "kind": "block",
    "version": "0.1.0",
    "source": {
      "name": "UIBlocks",
      "url": "https://uiblocks.org",
      "license": "MIT",
      "author": "UIBlocks contributors",
      "revision": "uiblocks-v0.1.0"
    },
    "license": "MIT",
    "style": "clean-saas",
    "pageType": "marketing",
    "featured": true,
    "tags": [
      "navigation",
      "header",
      "menu",
      "navbar",
      "landing",
      "导航",
      "页头",
      "菜单",
      "官网"
    ],
    "contentGuidelines": [
      "Use a short product name and three to four navigation links.",
      "Set the primary link to your real product entry route."
    ],
    "recommendedWith": [
      "hero-01",
      "footer-01"
    ],
    "entry": "@components/uiblocks/navigation-01/navigation-01.tsx",
    "exportName": "default",
    "frameworkIndependent": true,
    "frameworkDependencies": [],
    "compatibleHosts": [
      "react",
      "vite",
      "tanstack-start",
      "nextjs"
    ],
    "requirements": {
      "react": ">=19",
      "tailwind": ">=4"
    },
    "previewUrl": "https://uiblocks.org/preview/navigation-01"
  }
}
