{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-01",
  "title": "Pricing — 3 Tiers",
  "author": "SAASTRO <https://saastro.io>",
  "description": "Three-tier pricing cards with monthly/annual toggle and feature lists.",
  "registryDependencies": [
    "@saastro/button",
    "@saastro/card",
    "@saastro/badge",
    "@saastro/separator"
  ],
  "files": [
    {
      "path": "registry/default/blocks/pricing-01.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { buttonVariants } from \"@/components/ui/button\";\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { cn } from \"@/lib/utils\";\n\ntype Plan = {\n  name: string;\n  description: string;\n  monthlyPrice: number;\n  annualPrice: number;\n  features: string[];\n  popular?: boolean;\n  cta: { label: string; href: string };\n};\n\ntype Pricing01Props = {\n  title?: string;\n  description?: string;\n  plans: Plan[];\n  className?: string;\n};\n\nfunction CheckIcon() {\n  return (\n    <svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width=\"16\"\n      height=\"16\"\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth=\"2\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      className=\"text-primary\"\n    >\n      <path d=\"M20 6 9 17l-5-5\" />\n    </svg>\n  );\n}\n\nexport function Pricing01({\n  title,\n  description,\n  plans,\n  className,\n}: Pricing01Props) {\n  const [annual, setAnnual] = useState(false);\n\n  return (\n    <section className={cn(\"w-full px-6 py-24 md:py-32\", className)}>\n      <div className=\"mx-auto max-w-6xl\">\n        {(title || description) && (\n          <div className=\"mx-auto mb-12 max-w-2xl text-center\">\n            {title && (\n              <h2 className=\"text-3xl font-bold tracking-tight sm:text-4xl\">\n                {title}\n              </h2>\n            )}\n            {description && (\n              <p className=\"mt-4 text-lg text-muted-foreground\">\n                {description}\n              </p>\n            )}\n          </div>\n        )}\n        <div className=\"mb-12 flex justify-center\">\n          <div className=\"inline-flex items-center rounded-lg border p-1\">\n            <button\n              onClick={() => setAnnual(false)}\n              className={cn(\n                \"rounded-md px-4 py-2 text-sm font-medium transition-colors\",\n                !annual\n                  ? \"bg-primary text-primary-foreground\"\n                  : \"text-muted-foreground hover:text-foreground\",\n              )}\n            >\n              Monthly\n            </button>\n            <button\n              onClick={() => setAnnual(true)}\n              className={cn(\n                \"rounded-md px-4 py-2 text-sm font-medium transition-colors\",\n                annual\n                  ? \"bg-primary text-primary-foreground\"\n                  : \"text-muted-foreground hover:text-foreground\",\n              )}\n            >\n              Annual\n            </button>\n          </div>\n        </div>\n        <div className=\"grid gap-6 lg:grid-cols-3\">\n          {plans.map((plan) => (\n            <Card\n              key={plan.name}\n              className={cn(\n                \"relative flex flex-col\",\n                plan.popular && \"border-primary shadow-lg\",\n              )}\n            >\n              {plan.popular && (\n                <Badge className=\"absolute -top-3 left-1/2 -translate-x-1/2\">\n                  Popular\n                </Badge>\n              )}\n              <CardHeader>\n                <CardTitle>{plan.name}</CardTitle>\n                <CardDescription>{plan.description}</CardDescription>\n                <div className=\"mt-4\">\n                  <span className=\"text-4xl font-bold\">\n                    ${annual ? plan.annualPrice : plan.monthlyPrice}\n                  </span>\n                  <span className=\"text-muted-foreground\">/month</span>\n                </div>\n              </CardHeader>\n              <Separator />\n              <CardContent className=\"flex-1 pt-6\">\n                <ul className=\"space-y-3\">\n                  {plan.features.map((feature) => (\n                    <li key={feature} className=\"flex items-center gap-3\">\n                      <CheckIcon />\n                      <span className=\"text-sm\">{feature}</span>\n                    </li>\n                  ))}\n                </ul>\n              </CardContent>\n              <CardFooter>\n                <a\n                  href={plan.cta.href}\n                  className={cn(\n                    buttonVariants({\n                      variant: plan.popular ? \"default\" : \"outline\",\n                    }),\n                    \"w-full\",\n                  )}\n                >\n                  {plan.cta.label}\n                </a>\n              </CardFooter>\n            </Card>\n          ))}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/blocks/pricing-01.tsx"
    }
  ],
  "meta": {
    "group": "Pricing",
    "iframeHeight": "1050px"
  },
  "docs": "Import: `import { Pricing01 } from '@/components/blocks/pricing-01'`. Props: title?, description?, plans [{name, description, monthlyPrice, annualPrice, features[], popular?, cta {label, href}}], className?. Interactive (billing toggle) — in Astro hydrate with client:visible.",
  "categories": [
    "pricing",
    "landing"
  ],
  "type": "registry:block"
}