Staaarter

Statement CTA

Bold full-width call-to-action on a dark panel with dual buttons: one oversized heading statement, a short supporting line, and a primary and secondary button side by side. The panel uses the foreground/background token pair so it stays a guaranteed dark surface in both light and dark theme.

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/statement-cta.json

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

Usage

The file also exports cta64Demo, 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 { Cta64, cta64Demo } from "@/components/blocks/cta/cta64";

export default function Page() {
  return <Cta64 {...cta64Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Build faster. Ship sooner."The bold, oversized statement heading.
descriptionstring"Everything your team needs to go from idea to production, in one place."Short supporting copy under the heading.
primaryLabelstring"Get started"Label for the primary button.
primaryHrefstring"#"Link target for the primary button.
secondaryLabelstring"Contact sales"Label for the secondary button.
secondaryHrefstring"#"Link target for the secondary button.
classNamestringnoneExtra classes for the outer section element.

Behavior notes

  • Layout only: the panel uses `bg-foreground text-background` (semantic tokens, not a literal color) so it renders as a guaranteed-dark surface regardless of light/dark theme; the secondary button is a manually re-tinted outline variant using `border-background/30`/`text-background` since the default outline styling assumes a light surface.
  • Both buttons are inert links (`render={<Link/>}`) pointing at `#` by default; there is no real signup or contact-sales flow wired up.