Skip to content

Call to action band

A page's closing call to action, with a heading, one sentence and actions in a band.

<div data-mount="band" id="sample-band"></div>

Installation

// package.json: "capsomer": "github:DrDustinEdwards/capsomer#v0.152.2"
import "capsomer/tokens.css";
import "capsomer/base.css";
import "capsomer/cta-band.css";

Usage

<section class="cap-cta-band" aria-labelledby="c"><p class="cap-eyebrow" data-tone="accent">Start here</p><h2 id="c" class="cap-cta-band-title">Ready to write it down?</h2>
  <p class="cap-cta-band-text">Set up a notebook in two minutes.</p><div class="cap-cta-band-actions">[button links]</div>
  <p class="cap-cta-band-note">Apps for phones are coming.</p></section>

Examples

Quiet

<div data-mount="quiet" id="sample-quiet"></div>

API reference

CtaBand

PropTypeRequiredDoes
titleReactNodeYes
eyebrowReactNodeA short line above the heading ("Start reading").
childrenReactNode
actionsReactNodeYesButtons or button links; the first is the primary.
quietbooleanA quieter band: no fill, a rule above.
noteReactNodeA small line under the actions ("Apps for iOS and Android are coming").
headingLevel"h2" | "h3"
classNamestring

CSS variables

VariableDefault
--cta-band-aligncenter
--cta-band-bgvar(--accent-soft)
--cta-band-bordervar(--line-w) solid var(--accent-line)
--cta-band-padvar(--space-7) var(--space-6)
--cta-band-title-facerevert-layer
--cta-band-title-leadingrevert-layer
--cta-band-title-sizerevert-layer
--cta-band-title-weightrevert-layer

Parts and data attributes

ClassIs
.cap-cta-bandthe root
.cap-cta-band-actionsa part
.cap-cta-band-notea part
.cap-cta-band-texta part
.cap-cta-band-titlea part
AttributeValues
data-quietpresent or absent

Accessibility

KeyDoes
TabThrough the actions
  • Screen readers: no manual NVDA or VoiceOver run, by decision (2026-11-07); the automated browser checks and a front-end review stand in. Automated: see the site's Tests page.