Skip to content

MarketingLumen Halo

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.

.md
pnpm dlx shadcn@latest add @beautiful-ui-pro/lumen-cta-section

Needs 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.

Set up the Beautiful UI registry

Free pieces install from their URL with no setup (that URL gives the Base UI build; Radix projects use /r/radix-nova/<name>.json, or add the registries below and the CLI picks your build). Pro pieces need the registries below and BEAUTIFUL_UI_TOKEN in .env.local.

components.json
{
  "registries": {
    "@beautiful-ui": "https://beautiful-ui.dev/r/{style}/{name}.json",
    "@beautiful-ui-pro": {
      "url": "https://beautiful-ui.dev/r/pro/{style}/{name}.json",
      "headers": { "Authorization": "Bearer ${BEAUTIFUL_UI_TOKEN}" }
    }
  }
}

MCP server

claude mcp add --transport http beautiful-ui https://beautiful-ui.dev/api/mcp
Catalog for agents: /llms.txt

Usage

Import it and pass your content. The props that matter most are listed next.

Example
"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 / ReactNode

    The 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–

    ReactNode

    Small 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.