CTA SectionProv1.0.0
The closing ask at the end of a page: a headline, one line and either two actions or an email field that signs people up in place, with progress on the button and a thank-you in the same spot. A faint lit grid behind it, quiet enough for any page.
pnpm dlx shadcn@latest add @beautiful-ui-pro/lumen-cta-sectionNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
Styles didn't apply?
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Usage
Import it and pass your content. The props that matter most are listed next.
"use client";
import { CtaSection } from "@/components/ui/lumen/blocks/cta-section";
export function Closing() {
return (
<>
<CtaSection title="Ready when you are" description="Start free; bring your team when it clicks." primary={{ label: "Start free", href: "/signup" }} secondary={{ label: "Talk to sales", href: "/contact" }} note="No card needed." />
<CtaSection
layout="split"
title="Get the monthly digest"
description="One email a month with what shipped."
onSubscribe={async (email) => {
const res = await fetch("/api/subscribe", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email }) });
if (!res.ok) throw new Error("Couldn't add you. Try again.");
}}
note="Unsubscribe any time."
/>
</>
);
}Props
title / description–ReactNode / ReactNodeThe headline and its line.
primary / secondary–{ label, href?, onClick? }Two actions; the primary is filled. With href they render as links.
onSubscribe–(email) => Promise<void>An email signup instead of actions. Resolve when they're on the list; throw to show the error.
note–ReactNodeSmall print under the form or actions.
layout"center""center" | "split"Centred, or words left and actions right (stacks under 720px).
labels–{ email?, subscribe?, subscribing?, done?(email), badEmail? }Words, for i18n.
Source
components/ui/lumen/blocks/cta-section.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.