Skip to main content

Design system components

CTASection

Call-to-action band used on marketing pages.

Status: stable. Group: marketing. Markdown version: /design-system/components/cta-section.md

When to use

CTASection is the closing call-to-action band for marketing pages: a title, supporting description and primary/secondary action slots over a background variant. It sits between content sections and the footer (HomePage, AboutPageContent and WorkCTA all mount it). The id prop also forms the heading id (${id}-title) that names the section; when it is omitted a unique id is generated, so several CTASections on one page never share ids. background="dark" is built from the --color-black and --color-white tokens, and descriptions on the primary, gradient and dark bands use the band text colour at 80%. For mid-page emphasis with an overline, use HighlightSection instead.

When not to use

The contract records no forbidden uses.

Look-alikes

The contract names no look-alike with a deciding condition.

Props

CTASection props
PropTypeDefaultDescriptionRequired
titlestringnoneMain headline.Yes
descriptionstringnoneSupporting description.No
primaryActionActionItemnonePrimary action button.Yes
secondaryActionActionItemnoneSecondary action button.No
background"primary" | "muted" | "dark" | "gradient" | "brand"primaryBackground style. Defaults to "primary". Also sets the button surface: onBrand for brand, onDark for primary, gradient and dark, default for muted. "dark" is built from the --color-black and --color-white tokens.No
align"center" | "left"centerText alignment. Defaults to "center".No
classNamestringnoneCustom className.No
idstringnoneSection id for navigation; the heading id is derived from it as ${id}-title. When omitted, a unique id is generated so several CTASections on one page never share section or heading ids.No
donnyTargetstringnoneDonny site action target id.No

Variants

  • Allowed align values: center, left (default center).
  • Available backgrounds: primary, muted, dark, gradient, brand (default primary).

Invalid combinations

The contract records no invalid combinations.

Keyboard

The contract records no keyboard interaction.

Rules

Every item under When not to use is a MUST NOT. MUST and SHOULD follow RFC 2119.

CTASection rules
LevelRuleHow it is checked
MUSTARIA: The root <section> is named by its h2 through aria-labelledby; the heading id is ${id}-title, so ids must be unique per page.Not yet verified: no evidence record. WCAG 4.1.2.
MUSTRequired stories produce no axe violations at the configured severity.Automated by npm run test:stories:matrix:ci. WCAG 2.5.8.
MUSTThe accessibility tree (role, name, state) matches the committed snapshot for every required story.Automated by npm run test:stories:matrix:ci. WCAG 1.3.1, 4.1.2.
MUSTThe component remains legible and operable under a real browser forced-colors: active pass.Automated by npm run test:stories:hc.
MUSTA human completed an end-to-end accessibility review of this component.Manual review, last on 2026-11-04.
MUST NOTMaintainers: Do not bypass design tokens or skip forced-colors verification at beta.Release review; not machine-checked.

Install and import

  • In-repo only. CTASection is not exported from @digitaltableteur/react, so there is no public import path.