Installation
npx shadcn@latest add @pixeldosa/conversion-ctaRequires `cn` at `@/lib/utils`. Pass functional links or buttons through `actions`; the block does not select or infer a conversion destination.
Usage
<ConversionCTA
alignment="center"
title="Ready to get started?"
description="Bring your team together and move the next idea forward."
actions={<Button>Get started</Button>}
note="No credit card required."
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | CTA heading. |
description | string | — | Optional supporting copy. |
actions | React.ReactNode | — | Caller-supplied buttons or links. |
note | string | — | Optional reassurance below the actions. |
alignment | "left" | "center" | "left" | Content alignment. |
className | string | — | Extra section classes. |
why it's built this way
Engineering Notes
Keeps the CTA's content and actions as slots instead of owning navigation or checkout state, so the same section composes with native links, app-router links, or application actions. CVA provides a small alignment matrix, while a single content container preserves the hierarchy between headline, explanation, actions, and reassurance.
how it moves, and when it doesn't
Motion Notes
The section has no entrance or decorative animation; it should be available immediately when a visitor reaches the end of a page. Action controls remain ordinary consumer-supplied interactive elements with their own focus and feedback. Reduced-motion settings do not change the layout or hide content.