Highlight Card CTA
A bordered card that pairs a heading and description with a grid of small, bordered metric tiles, then a call-to-action button beneath. Built for data-backed conversion sections where the numbers do the persuading.
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/metric-highlight-card-cta.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta22.tsx instead.
Usage
The file also exports cta22Demo, 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 { Cta22, cta22Demo } from "@/components/blocks/cta/cta22"; export default function Page() { return <Cta22 {...cta22Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Small label above the heading. |
| heading | ReactNode | none | Main call-to-action heading. |
| description | string | none | Supporting copy under the heading. |
| metrics | Metric[] | none | Metric tiles rendered in a bordered grid, e.g. value + label pairs. |
| primaryCta | CtaLink | none | Primary action button, label and destination. |
| secondaryCta | CtaLink | none | Optional secondary action button. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Metric { value: string; label: string; } interface CtaLink { label: string; href: string; }
Behavior notes
- Fully static: metric values are pre-formatted strings passed in as props, not computed or animated.
- The outer card and each metric tile use the same border/background tokens so the tile grid reads as nested inside the card, not a separate section.
- Secondary button only renders when secondaryCta is provided.
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.