Staaarter

Centered Newsletter CTA

A minimal, centered call-to-action section with a heading, a short supporting description, and two action buttons side by side. Perfect for newsletter signups and conversion sections.

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 button dependencies and any missing npm packages, and installs them straight into your project.

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

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

Usage

The file also exports cta8Demo, 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 { Cta8, cta8Demo } from "@/components/blocks/cta/cta8";

export default function Page() {
  return <Cta8 {...cta8Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Stay in the loop"Main heading text.
descriptionstring"Get product updates, tips, and the occasional deep-dive delivered straight to your inbox. No spam, unsubscribe any time."Supporting copy under the heading.
primaryLabelstring"Subscribe"Label for the primary button.
primaryHrefstring"#"Link target for the primary button.
secondaryLabelstring"Learn more"Label for the secondary button.
secondaryHrefstring"#"Link target for the secondary button.
classNamestringnoneExtra classes for the outer section element.

Behavior notes

  • Fully static, presentational layout: no form submission or client-side validation is wired up.
  • Both buttons render as links via `render={<Link/>}`; there is no newsletter backend, so both are inert placeholders pointing at `#` by default.