CTA Banner
A centered block that ends a landing page with a gradient headline and one or two buttons.
<arc-cta-banner>Overview
CtaBanner is a centered block that closes a landing page or a marketing section. From top to bottom it stacks an eyebrow label, a gradient-text headline, the default slot for body copy and an actions slot for buttons, over a radial gradient made from the accent tokens. Set nogradient to turn the background off.
The eyebrow and headline slots take markup in place of the prop's text, but only while the prop is also set. Without it, the slotted markup renders with no styling and the headline gets no <h2>. Below 768px the padding shrinks and the buttons stack.
Guidelines
Do
- Keep the headline short and about the action, 6 words or fewer
- Use two buttons at most, one primary and one secondary
- Use the eyebrow to set context before the headline
Don't
- Don't put more than one on a page
- Don't use it for information. Use an Alert or a Card
- Don't leave out the headline
Features
- The headline uses `--text-2xl`, which scales from 28px to 36px
- CSS parts: `container`, `background`, `inner`, `eyebrow`, `headline`, `body`, `actions`
Preview
Usage
CTA Banner is in the marketing group, so the default @arclux/arc-ui entry point doesn't include it. Import it from@arclux/arc-ui/marketing or from its own subpath,@arclux/arc-ui/cta-banner.
<script type="module" src="@arclux/arc-ui"></script>
<arc-cta-banner eyebrow="Ready when you are" headline="Build something that glows.">
<p>A package for each of React, Vue, Svelte, Angular, Solid and Preact, and Web Components for plain HTML. MIT licensed.</p>
<arc-button slot="actions" href="/docs/getting-started" variant="primary" size="md">Read the install guide</arc-button>
<arc-button slot="actions" href="/docs/components" variant="secondary" size="md">Browse components</arc-button>
</arc-cta-banner>import { Button, CtaBanner } from '@arclux/arc-ui-react';
export function PageCTA() {
return (
<CtaBanner eyebrow="Ready when you are" headline="Build something that glows.">
<p>One package for plain HTML, a native one for each of seven frameworks. MIT licensed.</p>
<Button slot="actions" href="/docs/getting-started" variant="primary" size="md">Get Started</Button>
<Button slot="actions" href="/docs/components" variant="secondary" size="md">Explore Components</Button>
</CtaBanner>
);
}<script setup>
import { Button, CtaBanner } from '@arclux/arc-ui-vue';
</script>
<template>
<CtaBanner eyebrow="Ready when you are" headline="Build something that glows.">
<p>One package for plain HTML, a native one for each of seven frameworks. MIT licensed.</p>
<Button slot="actions" href="/docs/getting-started" variant="primary" size="md">Get Started</Button>
<Button slot="actions" href="/docs/components" variant="secondary" size="md">Explore Components</Button>
</CtaBanner>
</template><script>
import { Button, CtaBanner } from '@arclux/arc-ui-svelte';
</script>
<CtaBanner eyebrow="Ready when you are" headline="Build something that glows.">
<p>One package for plain HTML, a native one for each of seven frameworks. MIT licensed.</p>
<Button slot="actions" href="/docs/getting-started" variant="primary" size="md">Get Started</Button>
<Button slot="actions" href="/docs/components" variant="secondary" size="md">Explore Components</Button>
</CtaBanner>import { Component } from '@angular/core';
import { Button, CtaBanner } from '@arclux/arc-ui-angular';
@Component({
imports: [Button, CtaBanner],
template: `
<arc-cta-banner eyebrow="Ready when you are" headline="Build something that glows.">
<p>One package for plain HTML, a native one for each of seven frameworks. MIT licensed.</p>
<arc-button slot="actions" href="/docs/getting-started" variant="primary" size="md">Get Started</arc-button>
<arc-button slot="actions" href="/docs/components" variant="secondary" size="md">Explore Components</arc-button>
</arc-cta-banner>
`,
})
export class PageCTAComponent {}import { Button, CtaBanner } from '@arclux/arc-ui-solid';
export function PageCTA() {
return (
<CtaBanner eyebrow="Ready when you are" headline="Build something that glows.">
<p>One package for plain HTML, a native one for each of seven frameworks. MIT licensed.</p>
<Button slot="actions" href="/docs/getting-started" variant="primary" size="md">Get Started</Button>
<Button slot="actions" href="/docs/components" variant="secondary" size="md">Explore Components</Button>
</CtaBanner>
);
}import { Button, CtaBanner } from '@arclux/arc-ui-preact';
export function PageCTA() {
return (
<CtaBanner eyebrow="Ready when you are" headline="Build something that glows.">
<p>One package for plain HTML, a native one for each of seven frameworks. MIT licensed.</p>
<Button slot="actions" href="/docs/getting-started" variant="primary" size="md">Get Started</Button>
<Button slot="actions" href="/docs/components" variant="secondary" size="md">Explore Components</Button>
</CtaBanner>
);
}<arc-cta-banner eyebrow="Ready when you are" headline="Build something that glows.">
<p>A package for each of React, Vue, Svelte, Angular, Solid and Preact, and Web Components for plain HTML. MIT licensed.</p>
<arc-button slot="actions" href="/docs/getting-started" variant="primary" size="md">Read the install guide</arc-button>
<arc-button slot="actions" href="/docs/components" variant="secondary" size="md">Browse components</arc-button>
</arc-cta-banner><!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-cta-banner — self-contained, no external CSS needed -->
<style>
@media (max-width: 768px) {
.arc-cta-banner .cta { padding: 40px var(--space-md); }
}
@media (max-width: 768px) {
.arc-cta-banner .cta__actions { flex-direction: column; align-items: center; }
}
</style>
<div class="arc-cta-banner" style="display: block; position: relative; overflow: hidden">
<div class="cta" style="position: relative; padding: 96px 24px">
<div style="position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(77, 126, 247, 0.1), transparent 60%),
radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.08), transparent 60%); pointer-events: none"></div>
<div style="position: relative; max-width: 1120px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px">
Eyebrow
Headline
<div style="color: rgb(160, 165, 195); font-size: 15px; max-width: 480px; text-wrap: balance; line-height: 1.7">
Cta Banner
</div>
<div class="cta__actions" style="display: flex; gap: var(--space-md); margin-top: 8px">
</div>
</div>
</div>
</div>API
eyebrowstring''- Small label text displayed above the headline. Typically a short phrase like "Ready to build?" that sets context.
headlinestring''- Main headline text rendered with gradient display styling. Keep it concise and action-oriented.
nogradientbooleanfalse- When true, disables the radial gradient background effect for quieter contexts.
See also
- AlertAn inline message box colored by severity, with an optional close button.
- Feature CardA card with an icon, a heading and a short description, for feature grids on landing pages.
- ButtonAction button with three variants for action hierarchy and prefix and suffix slots for icons. For links, slot a real anchor, which works before JavaScript loads.