{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-02",
  "type": "registry:block",
  "description": "A simple pricing section.",
  "files": [
    {
      "path": "registry/designali/blocks/pricing/pricing-02.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  CircleCheck,\n} from \"@designali/icons\"\nimport { cn } from \"@workspace/ui/lib/utils\"\nimport { Button } from \"@workspace/ui/components/button\"\nimport {\n  Card,\n  CardContent,\n  CardFooter,\n  CardHeader,\n} from \"@workspace/ui/components/card\"\nimport { Switch } from \"@workspace/ui/components/switch\"\nimport { Separator } from \"@workspace/ui/components/separator\"\n\ninterface Plan {\n  name: string\n  description?: string\n  prices: {\n    monthly: string\n    yearly: string\n  }\n  features: string[]\n  popular?: boolean\n  cta: {\n    text: string\n    url: string\n  }\n}\n\ninterface Pricing01Props {\n  title?: string\n  description?: string\n  plans?: Plan[]\n  className?: string\n}\n\nexport const Pricing01 = ({\n  title = \"Simple, transparent pricing\",\n  description = \"Everything you need to build beautiful products with Designali.\",\n  plans = [\n    {\n      name: \"Free\",\n      description: \"For personal projects and experimentation.\",\n      prices: {\n        monthly: \"$0\",\n        yearly: \"$0\",\n      },\n      features: [\n        \"Core UI components\",\n        \"Designali components\",\n        \"Copy & paste code\",\n        \"Community support\",\n      ],\n      cta: {\n        text: \"Get Started\",\n        url: \"/blocks\",\n      },\n    },\n    {\n      name: \"Pro\",\n      description: \"For designers and developers building products.\",\n      prices: {\n        monthly: \"$19\",\n        yearly: \"$190\",\n      },\n      popular: true,\n      features: [\n        \"Everything in Free\",\n        \"Premium components\",\n        \"Advanced templates\",\n        \"Figma resources\",\n        \"Priority support\",\n        \"Early access\",\n      ],\n      cta: {\n        text: \"Start Building\",\n        url: \"/pricing\",\n      },\n    },\n    {\n      name: \"Team\",\n      description: \"For teams shipping products at scale.\",\n      prices: {\n        monthly: \"$49\",\n        yearly: \"$490\",\n      },\n      features: [\n        \"Everything in Pro\",\n        \"Team collaboration\",\n        \"Private components\",\n        \"Custom templates\",\n        \"Dedicated support\",\n        \"Early access\",\n      ],\n      cta: {\n        text: \"Contact Sales\",\n        url: \"/contact\",\n      },\n    },\n  ],\n  className,\n}: Pricing01Props) => {\n  const [isAnnual, setIsAnnual] = useState(false)\n\n  return (\n    <section\n      className={cn(\n        \"relative w-full h-screen flex items-center justify-center overflow-hidden py-10\",\n        className\n      )}\n    >\n      <div className=\"max-w-6xl w-full  mx-auto px-4\">\n        {/* Header */}\n        <div className=\"mx-auto flex max-w-2xl flex-col items-center gap-5 text-center\">\n          <h2 className=\"text-4xl font-medium tracking-tight md:text-5xl\">\n            {title}\n          </h2>\n\n          <p className=\"max-w-lg text-muted-foreground\">\n            {description}\n          </p>\n\n          {/* Billing Toggle */}\n          <div className=\"mt-2 flex items-center gap-4 border bg-background px-4 py-2\">\n            <span\n              className={cn(\n                \"text-sm transition-colors\",\n                !isAnnual\n                  ? \"font-medium text-foreground\"\n                  : \"text-muted-foreground\"\n              )}\n            >\n              Monthly\n            </span>\n\n            <Switch\n              checked={isAnnual}\n              onCheckedChange={setIsAnnual}\n            />\n\n            <span\n              className={cn(\n                \"text-sm transition-colors\",\n                isAnnual\n                  ? \"font-medium text-foreground\"\n                  : \"text-muted-foreground\"\n              )}\n            >\n              Yearly\n            </span>\n\n            <span className=\"bg-muted px-2 py-0.5 text-xs font-medium\">\n              Save 20%\n            </span>\n          </div>\n        </div>\n\n        {/* Pricing Cards */}\n        <div className=\"mt-14 flex flex-col items-stretch justify-center gap-6 lg:flex-row\">\n          {plans.map((plan) => (\n            <Card\n              key={plan.name}\n              className={cn(\n                \"relative flex w-full max-w-md flex-col\",\n                plan.popular && \"border-2 border-foreground shadow-lg\"\n              )}\n            >\n              {plan.popular && (\n                <div className=\"absolute -top-3.5 left-1/2 -translate-x-1/2\">\n                  <span className=\"rounded-full bg-foreground px-4 py-1.5 text-xs font-medium whitespace-nowrap text-background\">\n                    Most Popular\n                  </span>\n                </div>\n              )}\n\n              <CardHeader className=\"gap-3 p-6\">\n                <h3 className=\"text-xl font-medium\">{plan.name}</h3>\n\n                {plan.description && (\n                  <p className=\"text-sm text-muted-foreground\">\n                    {plan.description}\n                  </p>\n                )}\n\n                <div className=\"flex items-baseline gap-1 pt-3\">\n                  <span className=\"text-5xl font-semibold tracking-tight\">\n                    {isAnnual\n                      ? plan.prices.yearly\n                      : plan.prices.monthly}\n                  </span>\n\n                  <span className=\"text-sm text-muted-foreground\">\n                    {isAnnual ? \"/year\" : \"/month\"}\n                  </span>\n                </div>\n              </CardHeader>\n\n              <CardContent className=\"flex flex-1 flex-col gap-5 px-6\">\n                <Separator />\n\n                <ul className=\"flex flex-1 flex-col gap-3.5\">\n                  {plan.features.map((feature) => (\n                    <li\n                      key={feature}\n                      className=\"flex items-center gap-3 text-sm\"\n                    >\n                      <CircleCheck className=\"size-4 shrink-0\" />\n                      <span>{feature}</span>\n                    </li>\n                  ))}\n                </ul>\n              </CardContent>\n\n              <CardFooter className=\"p-6\">\n                <Button\n                  size=\"lg\"\n                  variant={plan.popular ? \"default\" : \"outline\"}\n                  className=\"w-full\"\n                   \n                >\n                  <a href={plan.cta.url}>{plan.cta.text}</a>\n                </Button>\n              </CardFooter>\n            </Card>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n ",
      "type": "registry:component",
      "target": "components/pricing-02.tsx"
    }
  ],
  "meta": {
    "iframeHeight": "900px"
  },
  "categories": [
    "pricing"
  ]
}