Staaarter

Split Text CTA

A purely typographic conversion section: a large heading sits in a narrower left column while a wider right column carries the supporting description and both call-to-action buttons. No imagery, columns stack on mobile.

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

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

Usage

The file also exports cta24Demo, 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 { Cta24, cta24Demo } from "@/components/blocks/cta/cta24";

export default function Page() {
  return <Cta24 {...cta24Demo} />;
}

Props

PropTypeDefaultDescription
headingReactNodenoneLarge heading in the left column.
descriptionstringnoneSupporting copy in the right column.
primaryCtaCtaLinknonePrimary action button, label and destination.
secondaryCtaCtaLinknoneOptional secondary action button.
classNamestringnoneExtra classes for the outer section element.

Types

interface CtaLink {
  label: string;
  href: string;
}

Behavior notes

  • Fully static: no imagery or interactivity, just a typographic split that stacks to a single column below the lg breakpoint.
  • The heading column spans 2 of 5 grid columns and the text/button column spans 3, giving the deliberately asymmetric editorial feel called for in the brief.
  • Secondary button only renders when secondaryCta is provided.