{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "plan-fit-demo",
  "type": "registry:block",
  "title": "Plan Fit: Usage-Based API",
  "description": "Usage-Based Pricing Slider example, Usage-Based API: A speech-to-text API billed by audio hours, with yearly billing. Build sells extra hours in packs, so it stays the best fit well past its 100 hours, until Scale costs less. 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-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/plan-fit.json"
  ],
  "files": [
    {
      "path": "components/plan-fit-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport { PlanFit, type PlanFitBilling, type PlanFitPlan } from \"@/components/ui/plan-fit\";\n\n// A speech-to-text API billed by hours of audio. Build sells extra hours in\n// packs, so it stays the cheapest well past its 100 hours, until Scale wins.\nconst PLANS: PlanFitPlan[] = [\n  {\n    id: \"free\",\n    name: \"Free\",\n    pitch: \"Try it on your own recordings.\",\n    price: 0,\n    included: 5,\n    caption: \"No card needed\",\n    features: [\"English and Spanish\", \"Speaker labels\", \"Community forum\"],\n    cta: { label: \"Start free\", href: \"#start\" },\n  },\n  {\n    id: \"build\",\n    name: \"Build\",\n    pitch: \"For apps shipping their first voice feature.\",\n    price: { monthly: 29, yearly: 23 },\n    included: 100,\n    overage: { price: 4, per: 10 },\n    caption: { monthly: \"Billed monthly\", yearly: \"Billed $276 a year\" },\n    features: [\"40 languages\", \"Word-level timestamps\", \"Email support\"],\n    cta: { label: \"Start building\", href: \"#build\" },\n  },\n  {\n    id: \"scale\",\n    name: \"Scale\",\n    pitch: \"For products people talk to every day.\",\n    price: { monthly: 249, yearly: 199 },\n    included: 1000,\n    overage: { price: 30, per: 100 },\n    limit: 2500,\n    caption: { monthly: \"Billed monthly\", yearly: \"Billed $2,388 a year\" },\n    features: [\"Live streaming\", \"Custom vocabulary\", \"99.9% uptime SLA\"],\n    cta: { label: \"Choose Scale\", href: \"#scale\" },\n  },\n  {\n    id: \"enterprise\",\n    name: \"Enterprise\",\n    pitch: \"Dedicated capacity in your own region.\",\n    price: \"Custom\",\n    caption: \"Volume pricing\",\n    features: [\"On-prem or your VPC\", \"A named engineer\", \"Signed DPA and SOC 2\"],\n    cta: { label: \"Talk to sales\", href: \"#sales\" },\n  },\n];\n\nconst BILLING: PlanFitBilling[] = [\n  { id: \"monthly\", label: \"Monthly\" },\n  { id: \"yearly\", label: \"Yearly\", note: \"−20%\" },\n];\n\nexport function PlanFitDemo() {\n  return (\n    <div className=\"w-full max-w-5xl\">\n      <PlanFit\n        plans={PLANS}\n        unit=\"hours\"\n        readoutLabel=\"hours of audio transcribed per month\"\n        defaultValue={60}\n        max={5000}\n        billing={BILLING}\n        defaultBilling=\"monthly\"\n      />\n    </div>\n  );\n}\n"
    }
  ]
}