Notification CTA
A compact, notification-style call-to-action card with an icon on the left, a short message in the middle, and an inline action button on the right, styled like a toast or alert but persistent on the page. Perfect for subtle inline conversion prompts.
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/notification-cta.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta21.tsx instead.
Usage
The file also exports cta21Demo, 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 { Cta21, cta21Demo } from "@/components/blocks/cta/cta21"; export default function Page() { return <Cta21 {...cta21Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| icon | LucideIcon | Sparkles | Icon rendered in the leading circle. |
| message | string | "New: automated release notes are now available on every plan." | Notification message text. |
| actionLabel | string | "Try it out" | Label for the inline action button. |
| actionHref | string | "#" | Link target for the inline action button. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- Purely presentational, toast-like card: no dismiss control, auto-hide timer, or live notification feed, it's a static persistent banner.
- The action button is an inert link (`render={<Link/>}`) pointing at `#` by default.
More CTA Blocks
View all →centered-newsletter-cta
Centered Newsletter CTA
Minimal centered call-to-action with heading, description, and action buttons.
split-layout-newsletter-cta
Split Layout Newsletter CTA
Two-column call-to-action with a decorative image on one side and a feature list plus subscribe form on the other.
newsletter-social-proof-cta
Newsletter CTA with Social Proof
Newsletter call-to-action with an avatar stack, subscriber count, and a testimonial quote.
banner-cta
Banner CTA
Horizontal banner call-to-action with heading and action buttons side by side.
stats-cta
Stats CTA
Call-to-action section with impressive statistics and trust indicators above action buttons.
multi-card-cta
Multi-Card CTA
Three action cards side by side, each offering a different path to conversion.