CTA centered
BlockA centred call to action with two actions on a muted band with a soft glow.
- Sections
- 1 components
- 1 file
Loading the example…
pnpm dlx @dowel-ui/cli add cta-centeredimport { CtaCenteredBlock } from "@/components/blocks/cta-centered"; export default function Page() { return <CtaCenteredBlock />;}<CtaCenteredBlock>
| Prop | Type | Default |
|---|---|---|
description | string | "Start building with accessible, animated components today. Free, open source and ready for production." |
headingLevelThe headline's level, so the block fits any page outline. | 1 | 2 | 3 | 4 | 5 | 6 | 2 |
primaryActionThe main call to action. | CtaCenteredAction | null | { label: "Get started", href: "#" } |
secondaryActionThe quieter call to action. | CtaCenteredAction | null | { label: "Learn more", href: "#" } |
titleThe headline. | string | "Ready to build something great?" |
Plus every attribute of <section> except title.
One section landmark named by its headline, whose level is a prop (default 2). Both actions are real links. The glow is aria-hidden decoration. The copy rises in once, on first scroll into view, and settles instantly under reduced motion.