{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-dock-demo",
  "type": "registry:block",
  "title": "Pricing Dock: AI API Pricing",
  "description": "Sticky Pricing Table example, AI API Pricing: An AI API's four plans under a sticky site nav, so the bar docks at `top={56}`. Scroll and each card folds into its column's header. Switch to Yearly from the docked toggle and the docked prices roll; click a docked name to peek at its whole card; hover a column to follow it down. 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-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/pricing-dock.json"
  ],
  "files": [
    {
      "path": "components/pricing-dock-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\nconst plans: PricingDockPlan[] = [\n  {\n    id: \"free\",\n    name: \"Free\",\n    price: 0,\n    caption: \"No card needed\",\n    pitch: \"Prototype with every fast model.\",\n    highlights: [\"20 requests per minute\", \"1M tokens a month\", \"Fast and embedding models\", \"Community support\"],\n    cta: { label: \"Start building\", href: \"#\" },\n  },\n  {\n    id: \"pro\",\n    name: \"Pro\",\n    price: { monthly: 40, yearly: 32 },\n    caption: { monthly: \"Billed monthly\", yearly: \"Billed $384 yearly\" },\n    pitch: \"For apps with real users in production.\",\n    highlights: [\"500 requests per minute\", \"Reasoning models\", \"Batch API at half price\", \"5 team seats\"],\n    featured: true,\n    badge: \"Most popular\",\n    cta: { label: \"Start free trial\", href: \"#\" },\n  },\n  {\n    id: \"scale\",\n    name: \"Scale\",\n    price: { monthly: 400, yearly: 320 },\n    caption: { monthly: \"Billed monthly\", yearly: \"Billed $3,840 yearly\" },\n    pitch: \"High volume, tuned to your own data.\",\n    highlights: [\"5,000 requests per minute\", \"Fine-tuning and evals\", \"Zero data retention\", \"Priority support\"],\n    cta: { label: \"Upgrade to Scale\", href: \"#\" },\n  },\n  {\n    id: \"enterprise\",\n    name: \"Enterprise\",\n    price: \"Custom\",\n    caption: \"Annual contract\",\n    pitch: \"Private deployments and custom terms.\",\n    highlights: [\"Private model deployments\", \"SSO, SCIM and audit logs\", \"Pin data to a region\", \"99.99% uptime SLA\"],\n    cta: { label: \"Contact sales\", href: \"#\" },\n  },\n];\n\nconst groups: PricingDockGroup[] = [\n  {\n    label: \"Usage\",\n    rows: [\n      {\n        feature: \"Requests per minute\",\n        hint: \"Sustained rate across all models. Short bursts up to 2× are allowed.\",\n        values: { free: \"20\", pro: \"500\", scale: \"5,000\", enterprise: \"Custom\" },\n      },\n      { feature: \"Tokens per month\", values: { free: \"1M\", pro: \"50M\", scale: \"1B\", enterprise: \"Unlimited\" } },\n      {\n        feature: \"Context window\",\n        hint: \"The most tokens a single request can read, prompt and files included.\",\n        values: { free: \"32K\", pro: \"200K\", scale: \"1M\", enterprise: \"1M\" },\n      },\n      { feature: \"Batch API\", values: { free: false, pro: true, scale: true, enterprise: true } },\n      { feature: \"Prompt caching\", values: { free: false, pro: true, scale: true, enterprise: true } },\n    ],\n  },\n  {\n    label: \"Models\",\n    rows: [\n      { feature: \"Fast models\", values: { free: true, pro: true, scale: true, enterprise: true } },\n      { feature: \"Reasoning models\", values: { free: false, pro: true, scale: true, enterprise: true } },\n      { feature: \"Embeddings and rerank\", values: { free: true, pro: true, scale: true, enterprise: true } },\n      {\n        feature: \"Fine-tuning\",\n        hint: \"Train on your own examples and serve the result at the base model's price.\",\n        values: { free: false, pro: false, scale: true, enterprise: true },\n      },\n      { feature: \"Private deployments\", values: { free: false, pro: false, scale: false, enterprise: true } },\n    ],\n  },\n  {\n    label: \"Collaboration\",\n    rows: [\n      { feature: \"Team seats\", values: { free: \"1\", pro: \"5\", scale: \"25\", enterprise: \"Unlimited\" } },\n      { feature: \"Shared projects\", values: { free: false, pro: true, scale: true, enterprise: true } },\n      { feature: \"Usage alerts\", values: { free: true, pro: true, scale: true, enterprise: true } },\n      { feature: \"Role-based access\", values: { free: false, pro: false, scale: true, enterprise: true } },\n    ],\n  },\n  {\n    label: \"Security\",\n    rows: [\n      { feature: \"SSO (SAML, OIDC)\", values: { free: false, pro: false, scale: \"Add-on\", enterprise: true } },\n      {\n        feature: \"Data retention\",\n        hint: \"How long prompts and outputs are kept for abuse monitoring. Never used for training.\",\n        values: { free: \"30 days\", pro: \"30 days\", scale: \"Zero\", enterprise: \"Custom\" },\n      },\n      { feature: \"SOC 2 Type II report\", values: { free: false, pro: true, scale: true, enterprise: true } },\n      { feature: \"Audit logs\", values: { free: false, pro: false, scale: true, enterprise: true } },\n      { feature: \"Region pinning\", values: { free: false, pro: false, scale: \"US or EU\", enterprise: \"Any region\" } },\n    ],\n  },\n  {\n    label: \"Support\",\n    rows: [\n      { feature: \"Support\", values: { free: \"Community\", pro: \"Email\", scale: \"Priority, 4h\", enterprise: \"Dedicated\" } },\n      { feature: \"Uptime SLA\", values: { free: false, pro: false, scale: \"99.9%\", enterprise: \"99.99%\" } },\n    ],\n  },\n];\n\n// The page scrolls inside a box so the demo fits the docs. On a real page,\n// drop the box and `containerRef`, and set `top` to your nav's height.\nexport function PricingDockDemo() {\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-white dark:border-zinc-800 dark:bg-zinc-950\">\n      <div ref={scrollRef} className=\"h-[var(--demo-height,44rem)] overflow-y-auto overscroll-contain\">\n        <nav className=\"sticky top-0 z-30 flex h-14 items-center gap-6 border-b border-zinc-900/[0.06] bg-white/80 px-5 backdrop-blur-md dark:border-white/[0.06] dark:bg-zinc-950/80\">\n          <span className=\"flex items-center gap-2 text-sm font-semibold tracking-tight text-zinc-900 dark:text-zinc-50\">\n            <svg viewBox=\"0 0 20 20\" aria-hidden className=\"size-5\">\n              <rect width=\"20\" height=\"20\" rx=\"5\" className=\"fill-zinc-900 dark:fill-white\" />\n              <path d=\"M5 14a5 5 0 0 1 10 0\" fill=\"none\" strokeWidth=\"2.25\" strokeLinecap=\"round\" className=\"stroke-violet-500\" />\n            </svg>\n            Arclight\n          </span>\n          <span className=\"hidden gap-5 text-sm text-zinc-500 sm:flex\">\n            <a href=\"#\">Models</a>\n            <a href=\"#\">Docs</a>\n            <a href=\"#\" className=\"text-zinc-900 dark:text-zinc-50\">\n              Pricing\n            </a>\n          </span>\n          <a\n            href=\"#\"\n            className=\"ml-auto rounded-full bg-zinc-900 px-3.5 py-1.5 text-sm font-medium text-white dark:bg-white dark:text-zinc-900\"\n          >\n            Get an API key\n          </a>\n        </nav>\n\n        <div className=\"mx-auto max-w-6xl px-4 sm:px-6\">\n          <header className=\"max-w-xl pt-14 pb-10 sm:pt-20\">\n            <p className=\"font-mono text-[11px] tracking-widest text-violet-600 uppercase dark:text-violet-400\">\n              Pricing\n            </p>\n            <h2 className=\"mt-3 text-3xl/tight font-semibold tracking-tight text-balance text-zinc-900 sm:text-4xl/tight dark:text-zinc-50\">\n              Start free. Pay as your traffic grows.\n            </h2>\n            <p className=\"mt-3 text-sm/6 text-pretty text-zinc-500\">\n              Every plan gets the same models and the same speed. Higher tiers raise your limits and add the controls\n              a security review asks for.\n            </p>\n          </header>\n\n          <PricingDock\n            containerRef={scrollRef}\n            top={56}\n            plans={plans}\n            groups={groups}\n            billing={[\n              { id: \"monthly\", label: \"Monthly\" },\n              { id: \"yearly\", label: \"Yearly\", note: \"−20%\" },\n            ]}\n            intro=\"Every plan includes the playground, SDKs in nine languages and live usage dashboards.\"\n            className=\"[--dock-accent:var(--color-violet-600)] [--dock-accent-foreground:white] [--dock-surface:white] dark:[--dock-accent:var(--color-violet-500)] 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              Need more than 5,000 requests a minute?\n            </h3>\n            <p className=\"mt-2 max-w-sm text-sm/6 text-pretty text-zinc-500\">\n              We set custom limits within a day and can run models in your own cloud.\n            </p>\n            <a\n              href=\"#\"\n              className=\"mt-5 rounded-full bg-violet-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-violet-500\"\n            >\n              Talk to sales\n            </a>\n          </footer>\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}