# Newsletter Section

> A React newsletter signup section for marketing pages: centered, split with the latest issue, a raised card or one compact row.

- Type: React block (Marketing Sections)
- Access: Pro (the source needs a Wingo UI Pro plan, see https://wingo-ui.com/pricing)
- Version: 1.0.0
- Install: `npx wingo-ui@latest add newsletter-section`
- Docs: https://wingo-ui.com/components/newsletter-section

## Interaction

Type an email and press Subscribe or Enter. An invalid address shows an error under the field; a valid one turns the button into a spinner until onSubscribe settles (or 900 ms without it), then the form gives way to an inline success line and the reader count grows by one ("You and 12,400 others"). A rejected promise shows a retry message. The privacy line links to the privacy policy. On phones the field and button stack at full width with 44px targets. In the split layout the latest issue is one link card with a focus ring; the card layout puts the form in a raised card on a gray band with the benefits beside it; the inline layout fits icon, copy and form on one row from 1024px.

## Installation

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

Pro item: run `npx wingo-ui@latest login` once with a Pro account. The CLI adds the files, their dependencies and a version record for updates.

With shadcn: `npx shadcn@latest add @wingo-ui/newsletter-section` (needs the @wingo-ui registry with your API key in components.json)

Files:

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

npm dependencies: `npm i 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))
- [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
"use client"

import Link from "next/link"
import { NewsletterSection } from "@/components/blocks/newsletter-section"

export default function Home() {
  return (
    <NewsletterSection
      layout="split"
      subscribers={12400}
      onSubscribe={async (email) => {
        const res = await fetch("/api/newsletter", { method: "POST", body: JSON.stringify({ email }) })
        if (!res.ok) throw new Error("Subscribe failed")
      }}
      linkComponent={Link}
    />
  )
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow?` | `ReactNode` | `"Newsletter"` | The small uppercase line over the title (not in the inline layout). |
| `title?` | `ReactNode` | `"Product notes, once a month"` | The section title. |
| `description?` | `ReactNode` | `"What we shipped, what we learned and how teams run their week in Acme. Five minutes to read."` | The muted paragraph under the title. |
| `layout?` | `"centered" \| "split" \| "card" \| "inline"` | `"centered"` | centered: heading, form and reader count in one column with the benefits in three columns below; split: copy and benefits left, the latest issue and the form in a panel right; card: a raised card on a muted band with the benefits in an inner panel; inline: icon, copy and form in one compact row. |
| `bullets?` | `NewsletterBullet[]` | `"NEWSLETTER_SECTION_SAMPLE"` | { icon?, title, description? } "what you get" points. |
| `showBullets?` | `boolean` | `true` | The "what you get" points (the inline layout never shows them). |
| `subscribers?` | `number` | `12400` | The reader count in the social proof line; 0 hides it. |
| `avatars?` | `string[]` | `"NEWSLETTER_SECTION_AVATARS"` | Names drawn as stacked initials next to the count (up to four). |
| `showProof?` | `boolean` | `true` | The stacked avatars and reader count. |
| `issue?` | `NewsletterIssue` | `"NEWSLETTER_SECTION_ISSUE"` | { title, excerpt?, date?, href? }: the latest issue, drawn as an email preview in the split layout. |
| `showIssue?` | `boolean` | `true` | The latest issue card in the split layout. |
| `showNote?` | `boolean` | `true` | The privacy line under the form. |
| `privacyHref?` | `string` | `"/legal/privacy"` | Where the privacy policy link goes. |
| `onSubscribe?` | `(email: string) => (void \| Promise<unknown>)` |  | Runs with the trimmed email. A returned promise keeps the button loading, a rejection shows labels.failed; without it the form waits 900 ms and succeeds. |
| `size?` | `"md" \| "lg"` | `"lg"` | The field and button height: 40 or 48px (44px minimum on touch). |
| `tone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | The Subscribe button and the icon tiles. |
| `background?` | `"auto" \| "none" \| "muted"` | `"auto"` | The band behind the section; auto is muted for the card layout and none for the others. |
| `headingSize?` | `"md" \| "lg"` | `"md"` | lg when the section opens the page (a newsletter page); the inline layout keeps its compact title. |
| `headingAs?` | `"h1" \| "h2" \| "h3"` | `"h2"` | The title element. |
| `spacing?` | `"none" \| "sm" \| "md" \| "lg"` | `"md"` | Vertical padding, from MarketingSection. |
| `locale?` | `string` | `"en-US"` | Intl locale for the reader count and the issue date; default the UIProvider's locale, then en-US. |
| `linkComponent?` | `(props: LinkComponentProps) => ReactNode` | `"\"a\""` | The router link (or "a") for the privacy and issue links; default the LinkProvider's. |
| `labels?` | `Partial<NewsletterSectionLabels>` |  | email, placeholder, submit, success, invalid, failed, note ({privacy}), privacy, proof ({count}), joined ({count}), readers, bulletsTitle, issueLabel, issueFrom, readIssue. |
| `className?` | `string` |  | Classes for the <section>. |
| `classNames?` | `Partial<Record<NewsletterSectionSlot, string>>` |  | Classes for heading, card, panel, icon, form, note, proof, bullets, bullet and issue. |

## Parts

### NEWSLETTER_SECTION_SAMPLE (constant)

Three sample benefits: one email a month, early access, playbooks from real teams.

### NEWSLETTER_SECTION_ISSUE (constant)

The sample latest issue, "How Northwind cut planning time in half" (Oct 1, 2026).

### NEWSLETTER_SECTION_AVATARS (constant)

Four sample reader names for the stacked avatars.

### DEFAULT_NEWSLETTER_SECTION_LABELS (constant)

The English strings, including the form's.

### NewsletterBullet (type)

{ icon?, title, description? }.

### NewsletterIssue (type)

{ title, excerpt?, date?, href? }.

### NewsletterSectionLayout (type)

"centered" | "split" | "card" | "inline".

### NewsletterSectionProps (type)

Props of NewsletterSection.

## Examples

- **Split, with the latest issue**: Copy and benefits on the left; an email preview of the last issue and the form on the right.
- **Raised card on a gray band**: The form in a card, the benefits and reader count in an inner panel. Addresses at example.com fail, to show the retry message.
- **One compact row**: Icon, copy, reader count and form on one line from 1024px, for the end of a blog post.
- **Centered, brand tone**: The default layout with the brand button, no avatars and a custom count line.
- **Developer digest with the latest issue**: The split layout for an engineering blog: custom benefits, the last issue as an email preview and a muted band.
- **Release notes first**: Breaking changes and deprecations a week before they ship.
- **Working code**: Every deep dive ends with a sample you can run.
- **Open source picks**: Three libraries the team used that month.
- **Webhooks v2: retries, signatures and replay**

## See also

- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [CTA Section](https://wingo-ui.com/components/cta-section) ([Markdown](https://wingo-ui.com/components/cta-section.md))
- [Marketing Footer](https://wingo-ui.com/components/marketing-footer) ([Markdown](https://wingo-ui.com/components/marketing-footer.md))
- [Avatar](https://wingo-ui.com/components/avatar) ([Markdown](https://wingo-ui.com/components/avatar.md))
- [Input](https://wingo-ui.com/components/input) ([Markdown](https://wingo-ui.com/components/input.md))

---

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