{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-dock-compare-demo",
  "type": "registry:block",
  "title": "Pricing Dock: Why Switch",
  "description": "Sticky Pricing Table example, Why Switch: Us against the two tools teams switch from, with logo cards instead of prices: each mark shrinks in beside its name as the cards dock. On a phone, the plan pills pick whose column the table shows, or swipe the table sideways. A take on the pricing table (pricing cards). Fits pricing sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "pricing",
    "pricing-table",
    "navbar",
    "scroll",
    "table"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/pricing-dock#pricing-dock-compare-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/pricing-dock.json"
  ],
  "files": [
    {
      "path": "components/pricing-dock-compare-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { PricingDock, type PricingDockGroup, type PricingDockPlan } from \"@/components/ui/pricing-dock\";\n\nfunction Mark({ className, children }: { className: string; children: React.ReactNode }) {\n  return (\n    <span className={`flex size-10 items-center justify-center rounded-[11px] ${className}`} aria-hidden>\n      {children}\n    </span>\n  );\n}\n\nconst plans: PricingDockPlan[] = [\n  {\n    id: \"us\",\n    name: \"Northlight\",\n    logo: (\n      <Mark className=\"bg-blue-600 text-white dark:bg-sky-400 dark:text-sky-950\">\n        <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"size-5\">\n          <path d=\"M10 2.5 12.2 8l5.3 2-5.3 2L10 17.5 7.8 12l-5.3-2 5.3-2L10 2.5Z\" />\n        </svg>\n      </Mark>\n    ),\n    pitch: \"Reviews that read the whole repo, not just the diff.\",\n    highlights: [\"First review in under a minute\", \"Learns your team's conventions\", \"Fixes as one-click suggestions\", \"Cloud or self-hosted\"],\n    featured: true,\n    badge: \"Free migration\",\n    cta: { label: \"Switch in 5 minutes\", href: \"#\" },\n  },\n  {\n    id: \"a\",\n    name: \"Competitor A\",\n    logo: (\n      <Mark className=\"bg-zinc-200 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400\">\n        <span className=\"font-mono text-sm font-semibold\">A</span>\n      </Mark>\n    ),\n    pitch: \"Rule-based linting with an AI summary on top.\",\n    highlights: [\"First review in 5–10 minutes\", \"Fixed rule sets\", \"Comments only, no fixes\", \"Cloud only\"],\n    cta: { label: \"Moving from A\", href: \"#\" },\n  },\n  {\n    id: \"b\",\n    name: \"Competitor B\",\n    logo: (\n      <Mark className=\"bg-zinc-200 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400\">\n        <span className=\"font-mono text-sm font-semibold\">B</span>\n      </Mark>\n    ),\n    pitch: \"A general chat assistant wired into pull requests.\",\n    highlights: [\"First review in 2–4 minutes\", \"Prompted per repository\", \"Suggestions in a chat thread\", \"Cloud only\"],\n    cta: { label: \"Moving from B\", href: \"#\" },\n  },\n];\n\nconst groups: PricingDockGroup[] = [\n  {\n    label: \"Speed\",\n    rows: [\n      { feature: \"Time to first review\", values: { us: \"Under 1 min\", a: \"5–10 min\", b: \"2–4 min\" } },\n      { feature: \"Large pull requests\", values: { us: \"1,000+ files\", a: \"Up to 200\", b: \"Up to 300\" } },\n      { feature: \"Re-reviews only what changed\", values: { us: true, a: false, b: true } },\n    ],\n  },\n  {\n    label: \"Review quality\",\n    rows: [\n      {\n        feature: \"Reads the whole repository\",\n        hint: \"Follows imports, call sites and tests outside the diff before it comments.\",\n        values: { us: true, a: false, b: \"Open files\" },\n      },\n      { feature: \"Learns team conventions\", values: { us: true, a: false, b: \"By prompt\" } },\n      { feature: \"One-click fixes\", values: { us: true, a: false, b: true } },\n      {\n        feature: \"False-positive rate\",\n        hint: \"Comments dismissed without a change, across 40 open-source repos we reviewed in September 2026.\",\n        values: { us: \"3%\", a: \"18%\", b: \"9%\" },\n      },\n      { feature: \"Writes missing tests\", values: { us: true, a: false, b: false } },\n    ],\n  },\n  {\n    label: \"Workflow\",\n    rows: [\n      { feature: \"GitHub, GitLab, Bitbucket\", values: { us: true, a: \"GitHub only\", b: \"GitHub, GitLab\" } },\n      { feature: \"Slack and Linear\", values: { us: true, a: \"Slack\", b: false } },\n      { feature: \"Custom review rules\", values: { us: true, a: true, b: false } },\n      { feature: \"CLI and pre-commit hook\", values: { us: true, a: false, b: false } },\n    ],\n  },\n  {\n    label: \"Security\",\n    rows: [\n      { feature: \"Self-hosting\", values: { us: true, a: false, b: false } },\n      { feature: \"Zero data retention\", values: { us: true, a: false, b: \"Enterprise\" } },\n      { feature: \"SOC 2 Type II\", values: { us: true, a: true, b: true } },\n      { feature: \"SSO and SCIM\", values: { us: true, a: \"Enterprise\", b: true } },\n      { feature: \"Never trains on your code\", values: { us: true, a: \"Opt-out\", b: true } },\n    ],\n  },\n  {\n    label: \"Price\",\n    rows: [\n      { feature: \"Per seat, per month\", values: { us: \"$19\", a: \"$29\", b: \"$24\" } },\n      { feature: \"Free for open source\", values: { us: true, a: false, b: true } },\n      { feature: \"Migration help\", values: { us: \"Free, hands-on\", a: false, b: false } },\n    ],\n  },\n];\n\nexport function PricingDockCompareDemo() {\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n\n  return (\n    <div className=\"relative isolate w-full overflow-hidden rounded-xl border border-zinc-200 bg-zinc-50 dark:border-zinc-800 dark:bg-[#08090c]\">\n      <div ref={scrollRef} className=\"h-[var(--demo-height,44rem)] overflow-y-auto overscroll-contain\">\n        <div className=\"mx-auto max-w-5xl px-4 sm:px-6\">\n          <header className=\"pt-14 pb-10 sm:pt-20\">\n            <p className=\"font-mono text-[11px] tracking-widest text-blue-600 uppercase dark:text-sky-400\">Compare</p>\n            <h2 className=\"mt-3 max-w-lg text-3xl/tight font-semibold tracking-tight text-balance text-zinc-900 sm:text-4xl/tight dark:text-zinc-50\">\n              Why teams switch to Northlight\n            </h2>\n            <p className=\"mt-3 max-w-md text-sm/6 text-pretty text-zinc-500\">\n              The two tools teams most often move from, side by side. Hover a column to follow it, or click a name once\n              it docks to see its card again.\n            </p>\n          </header>\n\n          <PricingDock\n            containerRef={scrollRef}\n            plans={plans}\n            groups={groups}\n            intro=\"Checked against each tool's public docs and pricing in October 2026.\"\n            compareLabel=\"Jump to the comparison\"\n            className=\"[--dock-accent:var(--color-blue-600)] [--dock-accent-foreground:white] [--dock-page:var(--color-zinc-50)] [--dock-surface:white] dark:[--dock-accent:var(--color-sky-400)] dark:[--dock-accent-foreground:var(--color-zinc-950)] dark:[--dock-page:#08090c] dark:[--dock-surface:var(--color-zinc-900)]\"\n          />\n\n          <footer className=\"flex flex-col items-center py-24 text-center\">\n            <h3 className=\"text-xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-50\">\n              Bring your rules with you\n            </h3>\n            <p className=\"mt-2 max-w-sm text-sm/6 text-pretty text-zinc-500\">\n              We import your existing review rules and ignore lists, so day one feels like day one hundred.\n            </p>\n            <a\n              href=\"#\"\n              className=\"mt-5 rounded-full bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-500 dark:bg-sky-400 dark:text-sky-950\"\n            >\n              Start the migration\n            </a>\n          </footer>\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}