Call to action
Turn interest into action with one focused, purposeful section.
<div class="cta">
<div><div><h2>Your next idea starts here.</h2><p>Good foundations leave more room for the things that matter.</p><a href="#get-started">Start building</a></div></div>
</div>.cta { padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--secondary); text-align: center; }
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted-foreground); }export default function decorate(block) {
block.querySelectorAll('a').forEach((link) => link.classList.add('button'));
}Installation
Run the source CLI from a Blocks UI checkout. This package is not published to npm.
node packages/cli/index.js add ctaOr copy the source files above. Include tokens.css and base.css once in your project.
Usage
Use the authored row-and-column structure, then let the standalone runtime discover and enhance the block.
<div class="cta">
<div><div><h2>Your next idea starts here.</h2><p>Good foundations leave more room for the things that matter.</p><a href="#get-started">Start building</a></div></div>
</div>import decorate from './blocks/cta/cta.js';
document.querySelectorAll('.cta').forEach(decorate);Variants
Choose a variant in the live preview. Add its class to the authored block.
defaultAccessibility & behavior
Semantic HTML, visible focus states, shared contrast-aware tokens, and responsive styles provide an accessible foundation. Preserve labels and heading hierarchy when customizing.
Multiple instances are supported. Layouts adapt to smaller viewports. No npm dependencies are required at runtime.
AEM usage
Copy the canonical CSS and JavaScript into your EDS block folder. Use the same row-and-column authoring structure shown above and let your existing AEM loader call the default decorator.
Standalone verified. EDS markup compatible. Live AEM integration has not been verified.