Components
CTA block
The closing call to action: the promise again, one specific next step and a reassurance line.
Free
pnpm dlx shadcn@latest add @caliper/cta-blockWhen to use
Use it for
- The end of a landing or pricing page.
- A technical audience that starts from a command.
Skip it when
- Several competing actions.
- A slogan with no concrete step.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/cta-block
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. No account needed. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage
This is the code behind the preview above.
example.tsx
import { type ReactNode } from "react" import { CtaBlock } from "@/components/ui/cta-block" function Frame({ children }: { children: ReactNode }) { return <div className="w-full overflow-hidden rounded-overlay border border-border shadow-resting">{children}</div>; } const ctas: Parameters<typeof CtaBlock>[0] = { eyebrow: "Start today", title: "Close October in a morning.", reassurance: "14 days free · no card · import your September close", primary: { label: "Start the trial", href: "#" } }; export function CtaBlockDemo() { return <Frame><CtaBlock {...ctas} /></Frame>; }
API reference
CtaBlock
component
PropTypeDefaultDescription
eyebrowstring—
title *string—
reassurancestring—e.g. "14 days free · no card · import your September close".
primaryBlockAction—
secondaryBlockAction—
actionReactNode—Custom content in place of the actions, e.g. an install command.
tone"page" | "ink""ink"
classNamestring—
Accessibility
It is built on native elements and keeps aria-hidden in step with state.
No custom key handling; Tab and the native activation keys do the work.
Motion
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.
Related
- Contact sectionA contact form beside the ways to reach a team.
- Footer blockThe page's last word: link columns, a newsletter that confirms in place, the legal line, status and the name as a full-width wordmark.
- FAQ blockSearchable questions with one answer open at a time, each linking to the exact doc, and a way to ask when nothing matches.