CTA Section React block for Tailwind CSS v4
v1.0.1Updated in 1.9.0
A React CTA section that closes a landing page: a title, two actions or an email signup, social proof and a short checklist on a band.
Both actions are links through your router. With newsletter on, an email field replaces them: it checks the address on submit, shows the error under the field, spins while onSubscribe runs and turns into a confirmation. The inverted band flips the text colors, so a neutral action becomes the band's text color and soft buttons and the field stay readable in both themes. The band rises a little as it first scrolls in (instant under reduced motion); it is never invisible. The band variant draws its scene in tokens (tinted light, a grid fading toward the copy, waves and floating cards around the copy on wide bands, two cards above it on narrow ones). The form variant puts the copy and a checklist beside an inset well with a stacked email form that validates, spins and confirms. On phones the actions stack full width, and the split panel and the form card put the actions under the copy.
CTA Section is a free React block in the React marketing sections category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add cta-section, together with Marketing Section, Avatar, Button, Motion presets, Navigation and 2 more and the npm packages motion and lucide-react.
Built with
The sections this page is made of. In the full-screen preview, hold Alt to outline each one on the page.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add cta-sectionUsage
Import CtaSection from @/components/blocks/cta-section.
// app/(marketing)/page.tsx
import Link from "next/link"
import { CtaSection } from "@/components/blocks/cta-section"
export default function HomePage() {
return (
<CtaSection
linkComponent={Link}
ctaTone="brand"
title="Ship your next project with Acme"
hrefs={{ primary: "/sign-up", secondary: "/contact" }}
/>
)
}Props
eyebrowdefault""ReactNodeThe small uppercase line over the title.
titledefault"Ship your next project with Acme"ReactNodeThe closing headline.
descriptiondefault"Set up your workspace in two minutes and bring the team when you're ready. Your first project is on us."ReactNodeThe paragraph under the title.
actionsReactNodeReplaces the primary and secondary buttons.
variantdefault"inverted""inverted" | "soft" | "split" | "plain" | "band" | "form"A solid band, a gray band, copy and actions side by side on a raised panel, no band, an image band (centered copy over a drawn scene with floating cards) or a raised card with the copy beside an email form.
mediaReactNodeband only: replaces the drawn scene behind the copy (an image, a video, your own drawing); a soft wash keeps the copy readable.
newsletterdefaultfalsebooleanAn email signup instead of the buttons (the form variant always has one).
onSubscribe(email: string) => (void | Promise<unknown>)Called with the address; a rejected promise shows the failed message. Without it the form waits 900 ms and succeeds.
newsletterLabelsPartial<NewsletterFormLabels>The form's strings: email, placeholder, submit, success, invalid, failed.
socialProofdefaulttruebooleanAvatars and the Join 12,000 teams line above the title.
avatarsdefault"CTA_SECTION_AVATARS"string[]Names for the social proof avatars, drawn as initials.
checklistdefault"CTA_SECTION_CHECKLIST"ReactNode[]Short promises under the actions: Free 14-day trial, No credit card, Cancel anytime.
showChecklistdefaulttruebooleanShows the checklist.
aligndefault"center""start" | "center"Where the copy sits (split and form always start, band always centers).
ctaTonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The primary action; neutral flips to the band's text color on the inverted band.
radiusdefault"md""sm" | "md" | "lg"Band corners: 16, 24 or 32px.
widthdefault"lg""md" | "lg" | "xl"The column: md 960px, lg 1200px, xl 1400px.
spacingdefault"md""none" | "sm" | "md" | "lg"Vertical padding around the band, as in MarketingSection.
headingSizedefault"md""md" | "lg"The title scale.
headingAsdefault"h2""h2" | "h3"The title element.
animateIndefaulttruebooleanThe band rises a little the first time it scrolls in.
linkComponentdefault""a""(props: LinkComponentProps) => ReactNodeThe router link for the actions; default the LinkProvider's.
labelsPartial<CtaSectionLabels>primary (also the form variant's submit), secondary, proof, people, checklist, formTitle and formNote.
hrefsPartial<CtaSectionHrefs>primary (/sign-up) and secondary (/contact).
classNamestringClasses for the <section>.
classNamesPartial<Record<CtaSectionSlot, string>>Classes for container, band, heading, title, description, actions, proof, checklist and form.
Parts
CTA_SECTION_CHECKLIST
constantThe sample promises: Free 14-day trial, No credit card, Cancel anytime.
CTA_SECTION_AVATARS
constantThe sample names for the social proof avatars.
DEFAULT_CTA_SECTION_LABELS
constantThe English strings.
DEFAULT_CTA_SECTION_HREFS
constantThe default action links.
CtaSectionProps
typeProps of CtaSection.
Examples
Brand action on the band
The one orange button of the page, on the inverted band.
Split with a newsletter
Copy on the left, an email signup on the right that validates and confirms.
Soft band
A gray band that sits quietly at the end of a docs or blog page.
Plain, start aligned
No band at all: the heading and actions on the page, left aligned.
Inverted with a signup
The email field on the solid band keeps its contrast in both themes.
Image band
Centered copy over a drawn scene of grid, waves and floating cards, in both themes.
Email capture card
The copy and a checklist beside a stacked email form that validates, loads and confirms.
Files
- components/blocks/cta-section.tsx
FAQ
Is the React CTA Section block free?
Yes. The source is free and needs no account: copy it from the Code tab or install it with the CLI.
How do I install CTA Section?
Run npx wingo-ui@latest add cta-section. It also adds the Wingo UI items it builds on (Marketing Section, Avatar, Button, Motion presets, Navigation and 2 more) and the npm packages motion and lucide-react. With shadcn, run npx shadcn@latest add https://wingo-ui.com/r/cta-section.json.
How does CTA Section behave on phones?
On phones the actions stack full width, and the split panel and the form card put the actions under the copy.
See also
Used in
More React marketing sections
Articles using this component
- Claude Code Landing Page That Does Not Look AI-Made
Building UI with AI agents11 min read
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.