# CTA Section

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

- Type: React block (Marketing Sections)
- Access: Free (the source is open to everyone)
- Version: 1.0.1
- Install: `npx wingo-ui@latest add cta-section`
- Docs: https://wingo-ui.com/components/cta-section

## Interaction

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.

## Installation

```bash
npx wingo-ui@latest add cta-section
```

The CLI adds the files, their dependencies and a version record for updates.

With shadcn: `npx shadcn@latest add https://wingo-ui.com/r/cta-section.json`

Files:

- `components/blocks/cta-section.tsx`

npm dependencies: `npm i motion lucide-react`

Wingo UI dependencies (installed automatically):

- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Avatar](https://wingo-ui.com/components/avatar) ([Markdown](https://wingo-ui.com/components/avatar.md))
- [Button](https://wingo-ui.com/components/button) ([Markdown](https://wingo-ui.com/components/button.md))
- [Motion presets](https://wingo-ui.com/components/motion) ([Markdown](https://wingo-ui.com/components/motion.md))
- [Navigation](https://wingo-ui.com/components/navigation) ([Markdown](https://wingo-ui.com/components/navigation.md))
- [Tones](https://wingo-ui.com/components/tones) ([Markdown](https://wingo-ui.com/components/tones.md))
- [UIProvider](https://wingo-ui.com/components/ui-config) ([Markdown](https://wingo-ui.com/components/ui-config.md))

## Usage

```tsx
// 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

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow?` | `ReactNode` | `""` | The small uppercase line over the title. |
| `title?` | `ReactNode` | `"Ship your next project with Acme"` | The closing headline. |
| `description?` | `ReactNode` | `"Set up your workspace in two minutes and bring the team when you're ready. Your first project is on us."` | The paragraph under the title. |
| `actions?` | `ReactNode` |  | Replaces the primary and secondary buttons. |
| `variant?` | `"inverted" \| "soft" \| "split" \| "plain" \| "band" \| "form"` | `"inverted"` | 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. |
| `media?` | `ReactNode` |  | band only: replaces the drawn scene behind the copy (an image, a video, your own drawing); a soft wash keeps the copy readable. |
| `newsletter?` | `boolean` | `false` | An 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. |
| `newsletterLabels?` | `Partial<NewsletterFormLabels>` |  | The form's strings: email, placeholder, submit, success, invalid, failed. |
| `socialProof?` | `boolean` | `true` | Avatars and the Join 12,000 teams line above the title. |
| `avatars?` | `string[]` | `"CTA_SECTION_AVATARS"` | Names for the social proof avatars, drawn as initials. |
| `checklist?` | `ReactNode[]` | `"CTA_SECTION_CHECKLIST"` | Short promises under the actions: Free 14-day trial, No credit card, Cancel anytime. |
| `showChecklist?` | `boolean` | `true` | Shows the checklist. |
| `align?` | `"start" \| "center"` | `"center"` | Where the copy sits (split and form always start, band always centers). |
| `ctaTone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | The primary action; neutral flips to the band's text color on the inverted band. |
| `radius?` | `"sm" \| "md" \| "lg"` | `"md"` | Band corners: 16, 24 or 32px. |
| `width?` | `"md" \| "lg" \| "xl"` | `"lg"` | The column: md 960px, lg 1200px, xl 1400px. |
| `spacing?` | `"none" \| "sm" \| "md" \| "lg"` | `"md"` | Vertical padding around the band, as in MarketingSection. |
| `headingSize?` | `"md" \| "lg"` | `"md"` | The title scale. |
| `headingAs?` | `"h2" \| "h3"` | `"h2"` | The title element. |
| `animateIn?` | `boolean` | `true` | The band rises a little the first time it scrolls in. |
| `linkComponent?` | `(props: LinkComponentProps) => ReactNode` | `"\"a\""` | The router link for the actions; default the LinkProvider's. |
| `labels?` | `Partial<CtaSectionLabels>` |  | primary (also the form variant's submit), secondary, proof, people, checklist, formTitle and formNote. |
| `hrefs?` | `Partial<CtaSectionHrefs>` |  | primary (/sign-up) and secondary (/contact). |
| `className?` | `string` |  | Classes for the <section>. |
| `classNames?` | `Partial<Record<CtaSectionSlot, string>>` |  | Classes for container, band, heading, title, description, actions, proof, checklist and form. |

## Parts

### CTA_SECTION_CHECKLIST (constant)

The sample promises: Free 14-day trial, No credit card, Cancel anytime.

### CTA_SECTION_AVATARS (constant)

The sample names for the social proof avatars.

### DEFAULT_CTA_SECTION_LABELS (constant)

The English strings.

### DEFAULT_CTA_SECTION_HREFS (constant)

The default action links.

### CtaSectionProps (type)

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

## See also

- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Hero Section](https://wingo-ui.com/components/hero-section) ([Markdown](https://wingo-ui.com/components/hero-section.md))
- [Button](https://wingo-ui.com/components/button) ([Markdown](https://wingo-ui.com/components/button.md))
- [Avatar](https://wingo-ui.com/components/avatar) ([Markdown](https://wingo-ui.com/components/avatar.md))

---

Canonical: https://wingo-ui.com/components/cta-section
More components: https://wingo-ui.com/components · Index for agents: https://wingo-ui.com/llms.txt
