{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-05",
  "type": "registry:block",
  "description": "Three pricing tiers with a monthly and yearly billing switch.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "switch"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/pricing/pricing-05.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Check,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Switch } from \"@workspace/ui/components/switch\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nimport { CounterNumber } from \"@/registry/designali/ui/counter-number\"\n\nconst plans = [\n  {\n    name: \"Starter\",\n    monthly: 0,\n    description: \"For individuals exploring the library.\",\n    features: [\"40 free Designali blocks\", \"Free icons and logos\", \"Personal projects\"],\n  },\n  {\n    name: \"Pro\",\n    monthly: 24,\n    description: \"For freelancers shipping client work.\",\n    features: [\n      \"All 460+ Designali blocks\",\n      \"Figma source files\",\n      \"Commercial license\",\n      \"Priority updates\",\n    ],\n    featured: true,\n  },\n  {\n    name: \"Team\",\n    monthly: 79,\n    description: \"For studios with shared libraries.\",\n    features: [\n      \"Everything in Pro\",\n      \"10 seats included\",\n      \"Private registry\",\n      \"Direct line to Ali Imam\",\n    ],\n  },\n]\n\nexport default function Pricing05() {\n  const [yearly, setYearly] = useState(true)\n\n  return (\n    <section className=\"w-full bg-background py-20\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <div className=\"text-center\">\n          <h2 className=\"text-3xl font-semibold tracking-tight md:text-5xl\">\n            Simple, honest Designali pricing\n          </h2>\n          <div className=\"mt-6 inline-flex items-center gap-3 text-sm\">\n            <span className={cn(!yearly && \"font-medium\")}>Monthly</span>\n            <Switch\n              checked={yearly}\n              onCheckedChange={setYearly}\n              aria-label=\"Toggle yearly billing\"\n            />\n            <span className={cn(yearly && \"font-medium\")}>\n              Yearly <span className=\"text-muted-foreground\">(save 20%)</span>\n            </span>\n          </div>\n        </div>\n        <div className=\"mt-12 grid border-t border-l border-border md:grid-cols-3\">\n          {plans.map((plan) => {\n            const price = yearly ? Math.round(plan.monthly * 0.8) : plan.monthly\n            return (\n              <div\n                key={plan.name}\n                className={cn(\n                  \"flex flex-col border-r border-b border-border p-8\",\n                  plan.featured && \"bg-muted/50\"\n                )}\n              >\n                <div className=\"flex items-center justify-between\">\n                  <h3 className=\"font-medium\">{plan.name}</h3>\n                  {plan.featured && (\n                    <span className=\"bg-primary px-2 py-0.5 text-xs text-primary-foreground\">\n                      Popular\n                    </span>\n                  )}\n                </div>\n                <p className=\"mt-2 text-sm text-muted-foreground\">\n                  {plan.description}\n                </p>\n                <p className=\"mt-8 flex items-end gap-1\">\n                  <CounterNumber\n                    value={price}\n                    prefix=\"$\"\n                    className=\"text-5xl font-semibold tracking-tighter\"\n                  />\n                  <span className=\"mb-1 text-sm text-muted-foreground\">\n                    / month\n                  </span>\n                </p>\n                <Button\n                  className=\"mt-8 w-full\"\n                  variant={plan.featured ? \"default\" : \"outline\"}\n                >\n                  {plan.monthly === 0\n                    ? \"Start for free\"\n                    : `Choose ${plan.name}`}\n                </Button>\n                <ul className=\"mt-8 space-y-3 text-sm\">\n                  {plan.features.map((feature) => (\n                    <li key={feature} className=\"flex items-center gap-2\">\n                      <Check className=\"size-4 text-muted-foreground\" />\n                      {feature}\n                    </li>\n                  ))}\n                </ul>\n              </div>\n            )\n          })}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "900px"
  },
  "categories": [
    "pricing"
  ]
}