{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"call-to-action","type":"registry:ui","title":"Call to action","description":"A closing band with one clear action.","dependencies":["clsx","tailwind-merge"],"registryDependencies":["https://caliperui.site/r/styles.json"],"files":[{"path":"ui/call-to-action.tsx","type":"registry:ui","target":"components/ui/call-to-action.tsx","content":"import type { ReactNode } from \"react\";\nimport { cn } from \"./lib/cn\";\nimport \"./call-to-action.css\";\n\n/** One last ask at the end of a page: a sentence, a reason, a button. */\nexport function CallToAction({\n  title,\n  description,\n  actions,\n  note,\n  tone = \"tinted\",\n  className,\n}: {\n  title: string;\n  description?: string;\n  actions: ReactNode;\n  note?: ReactNode;\n  tone?: \"plain\" | \"tinted\";\n  className?: string;\n}) {\n  return (\n    <section data-slot=\"cta\" data-tone={tone} aria-label={title} className={cn(\"mx-auto w-full max-w-6xl px-4 py-12 sm:px-6\", className)}>\n      <div className=\"grid justify-items-center gap-4 rounded-overlay border border-border px-6 py-12 text-center sm:px-12\">\n        <h2 className=\"max-w-xl text-balance text-3xl font-semibold tracking-tight\">{title}</h2>\n        {description && <p className=\"max-w-lg text-muted-foreground\">{description}</p>}\n        <div className=\"flex flex-wrap items-center justify-center gap-3\">{actions}</div>\n        {note && <p className=\"text-xs text-muted-foreground\">{note}</p>}\n      </div>\n    </section>\n  );\n}\n"},{"path":"ui/lib/cn.ts","type":"registry:ui","target":"components/ui/lib/cn.ts","content":"import { clsx, type ClassValue } from \"clsx\";\nimport { extendTailwindMerge } from \"tailwind-merge\";\n\nconst twMerge = extendTailwindMerge({\n  extend: { theme: { radius: [\"control\", \"surface\", \"overlay\"], shadow: [\"overlay\"] } },\n});\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n"},{"path":"ui/call-to-action.css","type":"registry:file","target":"components/ui/call-to-action.css","content":"/* call-to-action.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"cta\"][data-tone=\"tinted\"] > div {\n    background: color-mix(in srgb, var(--chart-1) 9%, var(--surface));\n  }\n}\n"}],"categories":["free-marketing"],"meta":{"tier":"free","license":"MIT","family":"reading-proof","docs":"/docs/components/call-to-action"}}