{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta8",
  "title": "Centered Newsletter CTA",
  "description": "Minimal centered call-to-action with heading, description, and action buttons. Perfect for newsletter signups and conversion sections.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button"
  ],
  "files": [
    {
      "path": "registry/cta8/cta8.tsx",
      "content": "\"use client\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\nimport { Mail } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\ninterface ButtonItem {\n  label: string;\n  href?: string;\n  variant?:\n    | \"default\"\n    | \"secondary\"\n    | \"outline\"\n    | \"ghost\"\n    | \"link\"\n    | \"destructive\";\n}\n\ninterface Cta8Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  buttons?: ButtonItem[];\n  footnote?: string;\n  className?: string;\n}\n\nexport const cta8Demo: Cta8Props = {\n  badge: { label: \"Newsletter\", variant: \"secondary\" },\n  heading: \"Stay in the <strong>loop</strong>\",\n  description:\n    \"Get the latest updates, articles, and resources delivered straight to your inbox every week. Join thousands of subscribers.\",\n  buttons: [\n    { label: \"Subscribe Now\", href: \"https://beste.co\" },\n    { label: \"Learn More\", href: \"https://beste.co\", variant: \"outline\" },\n  ],\n  footnote: \"No spam. Unsubscribe anytime.\",\n};\n\nexport function Cta8({\n  badge,\n  heading,\n  description,\n  buttons = [],\n  footnote,\n  className,\n}: Cta8Props) {\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-3xl px-4 md:px-6\">\n        <div className=\"flex flex-col items-center text-center gap-4\">\n          {badge && (\n            <Badge variant={badge.variant ?? \"secondary\"}>\n              <Mail className=\"size-3\" />\n              {badge.label}\n            </Badge>\n          )}\n\n          {heading && (\n            <h2\n              className=\"text-3xl font-bold md:text-4xl lg:text-5xl [&>strong]:text-primary [&>strong]:font-bold\"\n              dangerouslySetInnerHTML={{ __html: heading }}\n            />\n          )}\n\n          {description && (\n            <p className=\"max-w-xl text-base text-muted-foreground md:text-lg text-balance\">\n              {description}\n            </p>\n          )}\n\n          {buttons.length > 0 && (\n            <div className=\"mt-2 flex flex-wrap gap-3 justify-center\">\n              {buttons.map((button, index) => (\n                <Button\n                  key={index}\n                  variant={button.variant ?? \"default\"}\n                  asChild\n                >\n                  <Link href={button.href ?? \"#\"}>{button.label}</Link>\n                </Button>\n              ))}\n            </div>\n          )}\n\n          {footnote && (\n            <p className=\"text-xs text-muted-foreground\">{footnote}</p>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/cta8.tsx"
    }
  ],
  "type": "registry:block"
}