CTA banner
BlockA compact banner call to action: headline, one line of copy and a single action.
- Sections
- 2 components
- 1 file
Loading the example…
pnpm dlx @dowel-ui/cli add cta-bannerimport { CtaBannerBlock } from "@/components/blocks/cta-banner"; export default function Page() { return <CtaBannerBlock />;}<CtaBannerBlock>
| Prop | Type | Default |
|---|---|---|
actionThe single action. | CtaBannerAction | null | { label: "Get started", href: "#" } |
description | string | "Install any component with a single command." |
headingLevelThe headline's level, so the block fits any page outline. | 1 | 2 | 3 | 4 | 5 | 6 | 2 |
titleThe headline. | string | "Start building today" |
Plus every attribute of <section> except title.
One section landmark named by its headline, whose level is a prop (default 2). The action is a real link whose arrow mirrors in right-to-left text. The banner settles in once, on first scroll into view, and instantly under reduced motion.