Skip to main content
Clever Ops

Split Decision CTA

Two-path CTA section with mirrored panels, self-serve versus done-for-you, where hovering one path visibly weights the layout toward that decision.

Preview & code

Loading Split Decision CTA preview

Installation

pnpm dlx shadcn@latest add @cleverui/cta-split-decision

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { CtaSplitDecision } from '@/components/blocks/cta-split-decision'
Exampletsx
import { CtaSplitDecision } from '@/components/blocks/cta-split-decision'

export default function CtaSplitDecisionDemo() {
  return (
    <CtaSplitDecision
      eyebrow="Two ways in"
      heading="Ship it your way"
      dividerLabel="or"
      paths={[
        {
          label: 'Path 01, Self-serve',
          title: 'Start in the product',
          description:
            'Connect Stripe, GitHub, and your inbox this afternoon. Templates, billing, and deploy hooks are already wired.',
          points: [
            'Workspace ready in under 12 minutes',
            'Unlimited preview environments',
            'SOC 2 Type II controls included',
          ],
          cta: { label: 'Open free workspace', href: '#' },
          primary: true,
        },
        {
          label: 'Path 02, Done-for-you',
          title: 'Bring a specialist in',
          description:
            'A Meridian implementation lead maps your funnel, migrates history, and hands back a live stack in ten business days.',
          points: [
            'Dedicated migration engineer',
            'Custom data model workshop',
            'Go-live runbook + 30-day support',
          ],
          cta: { label: 'Book a scoping call', href: '#' },
        },
      ]}
    />
  )
}

API reference

CtaSplitDecision accepts the following props.

PropTypeDefaultDescription
eyebrowstring'Two ways in'
headingstring'Ship it your way'
paths*CtaSplitPath[]exactly two paths; the one flagged primary carries the accent moment
dividerLabelstring'or'mono label seated in the seam between the two panels

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface CtaSplitPath {
  label: string
  title: string
  description: string
  points?: string[]
  cta: { label: string; href: string }
  /** the single accent path, filled button + top keyline */
  primary?: boolean
}

Frequently asked questions

How do I install the Split Decision CTA component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/cta-split-decision`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Split Decision CTA require?

Split Decision CTA uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Split Decision CTA to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services