{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "plan-fit-signup-demo",
  "type": "registry:block",
  "title": "Plan Fit: Signup Step",
  "description": "Usage-Based Pricing Slider example, Signup Step: The plan step of a signup flow in a narrow column: the cards become a swipe row and the button names the plan that fits. A take on the range slider (range input) and pricing table (pricing cards). Fits pricing and CTA sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "pricing",
    "cta",
    "range-slider",
    "pricing-table",
    "interaction",
    "data"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/plan-fit#plan-fit-signup-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/plan-fit.json"
  ],
  "files": [
    {
      "path": "components/plan-fit-signup-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { PlanFit, type PlanFitPlan } from \"@/components/ui/plan-fit\";\n\n// The plan step of a signup flow, in a narrow column: the cards become a\n// swipe row, and the button under it always names the plan that fits.\nconst PLANS: PlanFitPlan[] = [\n  {\n    id: \"hobby\",\n    name: \"Hobby\",\n    pitch: \"Side projects and weekend experiments.\",\n    price: 0,\n    included: 200,\n    caption: \"Watermarked\",\n    features: [\"Standard queue\", \"1024px renders\"],\n  },\n  {\n    id: \"studio\",\n    name: \"Studio\",\n    pitch: \"For a designer generating every day.\",\n    price: 18,\n    included: 2000,\n    overage: { price: 5, per: 500 },\n    caption: \"Billed monthly\",\n    features: [\"Fast queue\", \"4K upscales\", \"Commercial license\"],\n  },\n  {\n    id: \"team\",\n    name: \"Team\",\n    pitch: \"Shared styles for a whole studio.\",\n    price: 90,\n    included: 15000,\n    overage: { price: 20, per: 2500 },\n    caption: \"Billed monthly\",\n    features: [\"Shared style library\", \"Ten seats\", \"Usage by member\"],\n  },\n];\n\nexport function PlanFitSignupDemo() {\n  const [plan, setPlan] = React.useState(\"studio\");\n  const name = PLANS.find((p) => p.id === plan)?.name;\n\n  return (\n    <div className=\"w-full max-w-sm rounded-[1.75rem] bg-white p-6 shadow-[0_0_0_1px_rgb(9_9_11/0.08),0_24px_48px_-24px_rgb(9_9_11/0.25)] dark:bg-zinc-900 dark:shadow-[0_0_0_1px_rgb(255_255_255/0.08)]\">\n      <p className=\"text-xs font-medium text-zinc-500 dark:text-zinc-400\">Step 2 of 3</p>\n      <h3 className=\"mt-1 text-lg font-semibold tracking-[-0.02em] text-zinc-950 dark:text-white\">\n        How many images a month?\n      </h3>\n      <PlanFit\n        plans={PLANS}\n        unit=\"images\"\n        readoutLabel=\"images generated per month\"\n        defaultValue={900}\n        max={40000}\n        onFitChange={setPlan}\n        className=\"mt-6 [--plan-fit-accent-ink:#0a0a0a] [--plan-fit-accent:#ff2e88] [--plan-fit-surface:#ffffff] dark:[--plan-fit-surface:#18181b]\"\n      />\n      <button\n        type=\"button\"\n        className=\"mt-6 h-11 w-full rounded-full bg-zinc-950 text-sm font-semibold text-white transition-[background-color,scale] duration-150 active:scale-[0.98] hover:bg-zinc-800 dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200\"\n      >\n        Continue with {name}\n      </button>\n    </div>\n  );\n}\n"
    }
  ]
}