CTA Banner
Call-to-action banner section
Marketing BlockHero
Overview
A promotional section with headline, subtext, primary CTA, and optional secondary CTA. Supports four layout variants.
Usage
import { CTABanner } from '@leanicon/web-builder-library'Variants
Minimal
Centered text on primary background.
Gradient
Like minimal but with a gradient background.
Custom gradient
Use background to pick a named band. The default is grad-brand, whose copy renders in ink — white on teal is 2.18:1 and is never used.
With image
Two-column layout: text left, image right, on primary background.
Split
Two-column card: colored left panel with text, image fills right panel.
Minimal (primary CTA only)
Ready to get started?
Notes
- Dark mode: pass
colorScheme="dark"or place inside a.darkancestor. - All CTA link
hrefvalues are forwarded to<a>tags.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
variant | "split" | "minimal" | "with-image" | "gradient" | null | minimal | No | |
headline | string | — | Yes | |
subtext | string | — | No | |
primaryCTA | CTAButton | — | Yes | |
secondaryCTA | CTAButton | — | No | |
image | ImageProps | — | No | |
colorScheme | enum | — | No | |
background | enum | — | No | A named section band, used when `variant` is `"gradient"`. For standalone use only — inside a page the adapter does not pass it, because RenderBlocks already paints the band on the block wrapper. Replaces a free-text `gradientClassName`, which interpolated an arbitrary CMS string straight into `cn()`. |
className | string | — | No |