CTA: split
Call-to-action band with your product image or component beside the copy.
Preview
The media floats up and straightens as the band scrolls into view. With reduced motion turned on, it renders the plain layout.
Ready to see your own usage?
Start free and send your first event in five minutes. Sample copy.
Weekly active usersSample data
Ready to see your own usage?
Start free and send your first event in five minutes. Sample copy.
Weekly active usersSample data
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { CtaSplit } from "@/components/custom/cta-split";
<CtaSplit
title="Ready to see your own usage?"
primaryAction={{ label: "Start free", href: "/signup" }}
media={<img src={screenshotUrl} alt="The dashboard" />}
/>import { CtaSplitMotion } from "@/components/custom/cta-split/cta-split-motion";
<CtaSplitMotion title="Ready?" primaryAction={{ label: "Start", href: "/signup" }} media={<Screenshot />} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title* (required) | string | – | Heading (h2). |
| primaryAction* (required) | { label; href } | – | Filled button. |
| secondaryAction | { label; href } | – | Outline button. |
| media* (required) | ReactNode | – | Image or component beside the copy. |
| description | string | – | Line under the heading. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| title* (required) | string | – | Heading (h2). |
| primaryAction* (required) | { label; href } | – | Filled button. |
| secondaryAction | { label; href } | – | Outline button. |
| media* (required) | ReactNode | – | Image or component beside the copy. |
| description | string | – | Line under the heading. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- Give the media its own text alternative.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.