Staaarter

Newsletter Preview CTA

A preview card styled like a real newsletter issue, complete with a sender header, issue number badge, date, headline, and a body snippet, sitting above an inline email input and subscribe button. Gives visitors a taste of the content before they commit to subscribing.

By Staaarter Team
CTA
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge, button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/newsletter-preview-cta.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta31.tsx instead.

Usage

The file also exports cta31Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Cta31, cta31Demo } from "@/components/blocks/cta/cta31";

export default function Page() {
  return <Cta31 {...cta31Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"See what you're missing"Section heading above the preview card.
descriptionstringnoneSupporting paragraph under the heading.
issueNumberstring"Issue #48"Badge text showing the issue number.
issueDatestring"March 3, 2026"Date line above the mock headline.
issueHeadlinestringnoneMock headline for the previewed issue.
issueSnippetstringnoneMock body excerpt shown under the headline.
emailPlaceholderstring"[email protected]"Placeholder text for the email input.
actionLabelstring"Subscribe"Label for the submit button.
classNamestringnoneExtra classes for the outer section element.

Behavior notes

  • Fully static: this is a Server Component, so the form has no onSubmit handler and the email input is uncontrolled, nothing is sent anywhere on submit.
  • The issue card (sender header, badge, headline, snippet) is entirely decorative mock content, not a real newsletter archive or preview generator.