Newsletter Section React block for Tailwind CSS v4
v1.0.0Added in 1.7.0
A React newsletter signup section for marketing pages: centered, split with the latest issue, a raised card or one compact row.
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.
Newsletter Section is a Pro 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 newsletter-section, together with Marketing Section, Avatar, Navigation, Tones and UIProvider and the npm package 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 newsletter-sectionNewsletter Section is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import NewsletterSection from @/components/blocks/newsletter-section.
// 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
eyebrowdefault"Newsletter"ReactNodeThe small uppercase line over the title (not in the inline layout).
titledefault"Product notes, once a month"ReactNodeThe section title.
descriptiondefault"What we shipped, what we learned and how teams run their week in Acme. Five minutes to read."ReactNodeThe muted paragraph under the title.
layoutdefault"centered""centered" | "split" | "card" | "inline"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.
bulletsdefault"NEWSLETTER_SECTION_SAMPLE"NewsletterBullet[]{ icon?, title, description? } "what you get" points.
showBulletsdefaulttruebooleanThe "what you get" points (the inline layout never shows them).
subscribersdefault12400numberThe reader count in the social proof line; 0 hides it.
avatarsdefault"NEWSLETTER_SECTION_AVATARS"string[]Names drawn as stacked initials next to the count (up to four).
showProofdefaulttruebooleanThe stacked avatars and reader count.
issuedefault"NEWSLETTER_SECTION_ISSUE"NewsletterIssue{ title, excerpt?, date?, href? }: the latest issue, drawn as an email preview in the split layout.
showIssuedefaulttruebooleanThe latest issue card in the split layout.
showNotedefaulttruebooleanThe privacy line under the form.
privacyHrefdefault"/legal/privacy"stringWhere 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.
sizedefault"lg""md" | "lg"The field and button height: 40 or 48px (44px minimum on touch).
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The Subscribe button and the icon tiles.
backgrounddefault"auto""auto" | "none" | "muted"The band behind the section; auto is muted for the card layout and none for the others.
headingSizedefault"md""md" | "lg"lg when the section opens the page (a newsletter page); the inline layout keeps its compact title.
headingAsdefault"h2""h1" | "h2" | "h3"The title element.
spacingdefault"md""none" | "sm" | "md" | "lg"Vertical padding, from MarketingSection.
localedefault"en-US"stringIntl locale for the reader count and the issue date; default the UIProvider's locale, then en-US.
linkComponentdefault""a""(props: LinkComponentProps) => ReactNodeThe router link (or "a") for the privacy and issue links; default the LinkProvider's.
labelsPartial<NewsletterSectionLabels>email, placeholder, submit, success, invalid, failed, note ({privacy}), privacy, proof ({count}), joined ({count}), readers, bulletsTitle, issueLabel, issueFrom, readIssue.
classNamestringClasses for the <section>.
classNamesPartial<Record<NewsletterSectionSlot, string>>Classes for heading, card, panel, icon, form, note, proof, bullets, bullet and issue.
Parts
NEWSLETTER_SECTION_SAMPLE
constantThree sample benefits: one email a month, early access, playbooks from real teams.
NEWSLETTER_SECTION_ISSUE
constantThe sample latest issue, "How Northwind cut planning time in half" (Oct 1, 2026).
NEWSLETTER_SECTION_AVATARS
constantFour sample reader names for the stacked avatars.
DEFAULT_NEWSLETTER_SECTION_LABELS
constantThe English strings, including the form's.
NewsletterBullet
type{ icon?, title, description? }.
NewsletterIssue
type{ title, excerpt?, date?, href? }.
NewsletterSectionLayout
type"centered" | "split" | "card" | "inline".
NewsletterSectionProps
typeProps 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
Files
- components/blocks/newsletter-section.tsx
FAQ
Is the React Newsletter Section block free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Newsletter Section?
Run npx wingo-ui@latest add newsletter-section. It also adds the Wingo UI items it builds on (Marketing Section, Avatar, Navigation, Tones and UIProvider) and the npm package lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/newsletter-section.
How does Newsletter Section behave on phones?
On phones the field and button stack at full width with 44px targets.
See also
Used in
More React marketing sections
Articles using this component
- Changelog Page Template in React: RSS, Email, Permalinks
Build it: screens and apps10 min read
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.