{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "handoff-nav-demo",
  "type": "registry:block",
  "title": "Handoff Nav: AI Product",
  "description": "Sticky Navbar on Scroll example, AI Product: An AI inbox's landing page. Scroll the page: the bar docks into a pill, and \"Get Morrow\" flies up into it as the hero passes under. Scroll back up and it flies home. A take on the navbar (nav bar). Fits navbar, shop and hero sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "navbar",
    "shop",
    "hero",
    "navigation",
    "scroll",
    "interaction"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/handoff-nav#handoff-nav-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/handoff-nav.json"
  ],
  "files": [
    {
      "path": "components/handoff-nav-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { HandoffNav, HandoffNavCta, HandoffNavProvider } from \"@/components/ui/handoff-nav\";\n\nconst links = [\n  { label: \"Product\", href: \"#product\" },\n  { label: \"Pricing\", href: \"#pricing\" },\n  { label: \"Changelog\", href: \"#changelog\" },\n  { label: \"Docs\", href: \"#docs\" },\n];\n\nconst threads = [\n  {\n    from: \"Priya Raman\",\n    subject: \"Q3 board deck: one more pass?\",\n    preview: \"Happy to tighten the retention slide before Thursday. I moved the cohort chart up and…\",\n    time: \"6:12\",\n  },\n  {\n    from: \"Lisbon offsite\",\n    subject: \"Flights are booked, hotel needs a headcount\",\n    preview: \"The venue holds rooms until Friday noon. Can you confirm 14 or should we keep 16?\",\n    time: \"5:48\",\n  },\n  {\n    from: \"Tomás at Harbor\",\n    subject: \"Renewal terms for 2027\",\n    preview: \"Attaching the redline. The only open item is the uptime credit in section 4.2.\",\n    time: \"Yesterday\",\n  },\n  {\n    from: \"Mei Chen\",\n    subject: \"Coffee next week?\",\n    preview: \"I'm in town Tuesday to Thursday. Would love to hear how the launch went.\",\n    time: \"Yesterday\",\n  },\n];\n\nconst steps = [\n  {\n    title: \"It reads overnight\",\n    body: \"Every new thread is read once, with the history behind it: what you promised, who's waiting, what changed.\",\n  },\n  {\n    title: \"It drafts in your voice\",\n    body: \"Replies sound like the last hundred you sent. Short where you're short, warm where you're warm.\",\n  },\n  {\n    title: \"You send before coffee\",\n    body: \"Open a thread, change a word if you want, press send. Most mornings take under ten minutes.\",\n  },\n];\n\nfunction Mark() {\n  return (\n    <svg viewBox=\"0 0 24 24\" aria-hidden className=\"size-6\">\n      <circle cx=\"12\" cy=\"12\" r=\"10\" className=\"fill-zinc-950 dark:fill-white\" />\n      <path d=\"M7 13.5a5 5 0 0 0 10 0\" className=\"fill-none stroke-white stroke-2 dark:stroke-zinc-950\" />\n      <circle cx=\"12\" cy=\"8.5\" r=\"1.6\" className=\"fill-violet-400\" />\n    </svg>\n  );\n}\n\nexport function HandoffNavDemo() {\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n\n  return (\n    <div className=\"relative w-full overflow-hidden rounded-xl border border-zinc-200 bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-950\">\n      <div ref={scrollRef} className=\"@container relative h-[var(--demo-height,36rem)] overflow-y-auto overscroll-contain\">\n        <HandoffNavProvider>\n          <HandoffNav\n            containerRef={scrollRef}\n            className=\"[--handoff-nav-width:64rem]\"\n            logo={\n              <a\n                href=\"#\"\n                className=\"flex items-center gap-2 rounded-md text-[15px] font-semibold tracking-tight text-zinc-950 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-zinc-950 dark:text-white dark:focus-visible:outline-white\"\n              >\n                <Mark />\n                Morrow\n              </a>\n            }\n            links={links}\n            action={{ label: \"Log in\", href: \"#login\" }}\n          />\n\n          <main className=\"mx-auto max-w-5xl px-4 pb-16 @xl:px-6\">\n            <section className=\"flex flex-col items-center pt-10 text-center @xl:pt-14\">\n              <a\n                href=\"#changelog\"\n                className=\"inline-flex items-center gap-2 rounded-full border border-zinc-950/10 bg-white py-1 pr-3 pl-1 text-[13px] text-zinc-700 shadow-sm dark:border-white/10 dark:bg-zinc-900 dark:text-zinc-300\"\n              >\n                <span className=\"rounded-full bg-violet-600 px-2 py-0.5 text-[11px] font-semibold text-white\">New</span>\n                Drafts now match your sign-off\n                <span aria-hidden>→</span>\n              </a>\n              <h1 className=\"mt-6 max-w-2xl text-4xl/[1.05] font-semibold tracking-[-0.035em] text-balance text-zinc-950 @xl:text-6xl/[1.02] dark:text-white\">\n                Your inbox, answered{\" \"}\n                <span className=\"text-zinc-400 dark:text-zinc-500\">before you open it.</span>\n              </h1>\n              <p className=\"mt-5 max-w-md text-[15px]/6 text-pretty text-zinc-600 dark:text-zinc-400\">\n                Morrow reads every thread overnight and leaves a reply drafted in your voice. You read it,\n                change a word, and send.\n              </p>\n              <div className=\"mt-8 flex items-center gap-5\">\n                <a\n                  href=\"#product\"\n                  className=\"text-sm font-medium text-zinc-700 underline-offset-4 hover:underline dark:text-zinc-300\"\n                >\n                  See a sample morning\n                </a>\n                <HandoffNavCta href=\"#signup\">Get Morrow</HandoffNavCta>\n              </div>\n            </section>\n\n            <section id=\"product\" className=\"mt-14\">\n              <div className=\"overflow-hidden rounded-2xl border border-zinc-950/10 bg-white shadow-[0_24px_60px_-30px_rgb(9_9_11/0.35)] dark:border-white/10 dark:bg-zinc-900\">\n                <div className=\"flex items-center justify-between border-b border-zinc-950/[0.06] px-4 py-3 dark:border-white/[0.06]\">\n                  <p className=\"text-[13px] font-medium text-zinc-900 dark:text-zinc-100\">Inbox</p>\n                  <p className=\"text-[12px] text-zinc-500\">4 drafts ready · 7:02 am</p>\n                </div>\n                <ul className=\"divide-y divide-zinc-950/[0.06] dark:divide-white/[0.06]\">\n                  {threads.map((thread) => (\n                    <li key={thread.subject} className=\"flex items-start gap-3 px-4 py-3.5\">\n                      <span className=\"mt-0.5 grid size-8 shrink-0 place-items-center rounded-full bg-zinc-100 text-[12px] font-semibold text-zinc-600 dark:bg-zinc-800 dark:text-zinc-300\">\n                        {thread.from\n                          .split(\" \")\n                          .map((word) => word[0])\n                          .slice(0, 2)\n                          .join(\"\")}\n                      </span>\n                      <div className=\"min-w-0 flex-1 text-left\">\n                        <div className=\"flex items-baseline justify-between gap-3\">\n                          <p className=\"truncate text-[13px] font-medium text-zinc-900 dark:text-zinc-100\">\n                            {thread.from}\n                          </p>\n                          <p className=\"shrink-0 text-[11px] text-zinc-400 tabular-nums\">{thread.time}</p>\n                        </div>\n                        <p className=\"truncate text-[13px] text-zinc-700 dark:text-zinc-300\">{thread.subject}</p>\n                        <p className=\"truncate text-[12px] text-zinc-500\">{thread.preview}</p>\n                      </div>\n                      <span className=\"mt-1 hidden shrink-0 rounded-full bg-violet-50 px-2 py-0.5 text-[11px] font-medium text-violet-700 @xl:inline dark:bg-violet-500/15 dark:text-violet-300\">\n                        Draft ready\n                      </span>\n                    </li>\n                  ))}\n                </ul>\n              </div>\n            </section>\n\n            <section className=\"mt-20\">\n              <h2 className=\"max-w-md text-2xl/tight font-semibold tracking-tight text-zinc-950 dark:text-white\">\n                How a morning goes\n              </h2>\n              <ol className=\"mt-6 grid gap-px overflow-hidden rounded-2xl border border-zinc-950/10 bg-zinc-950/10 @2xl:grid-cols-3 dark:border-white/10 dark:bg-white/10\">\n                {steps.map((step, index) => (\n                  <li key={step.title} className=\"bg-white p-5 dark:bg-zinc-900\">\n                    <p className=\"text-[12px] text-zinc-400 tabular-nums\">{index + 1} of 3</p>\n                    <p className=\"mt-6 text-[15px] font-medium text-zinc-900 dark:text-zinc-100\">{step.title}</p>\n                    <p className=\"mt-1.5 text-[13px]/5 text-zinc-500 dark:text-zinc-400\">{step.body}</p>\n                  </li>\n                ))}\n              </ol>\n            </section>\n\n            <section className=\"mt-20 grid gap-8 @2xl:grid-cols-[1fr_1.2fr] @2xl:items-end\">\n              <h2 className=\"text-2xl/tight font-semibold tracking-tight text-zinc-950 dark:text-white\">\n                Nothing sends without you\n              </h2>\n              <p className=\"text-[15px]/6 text-zinc-600 dark:text-zinc-400\">\n                Drafts wait in the thread until you press send. Morrow never replies on its own, never\n                forwards, and never reads folders you haven&apos;t shared with it.\n              </p>\n            </section>\n\n            <footer className=\"mt-24 flex items-center justify-between border-t border-zinc-950/10 pt-6 text-[13px] text-zinc-500 dark:border-white/10\">\n              <span>© 2026 Morrow Labs</span>\n              <span>Privacy · Terms</span>\n            </footer>\n          </main>\n        </HandoffNavProvider>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}