Block 57 of 297
CTA with Stats
Oversized ask with two actions above a ruled strip of two to four key figures and a visible source or sample-data note.
- Puck key
- CtaStatsBlock
- Export
- ctaStatsBlock
- React component
- <CtaStats />
- Path
- components/puck/cta-stats-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A call to action that leads with a large heading and body, places a primary button and a secondary link to the right on desktop, and closes with a ruled strip of up to four key figures and a source note. The figures run one per row on phones and spread across the width on larger screens.
- A membership or giving appeal backed by a few outcome numbers
- An annual report landing section pointing to the full report
- A foundation or park conservancy page summarizing reach
Writing the content
- Two to four Figures read best. Type each one as it should appear, such as 48 mi or $0.89, and keep the Label to a few words.
- Always fill in Figures note with the source and year. Leave a sample-data note in place until you replace the demo numbers.
- The heading prints up to text-6xl, so keep it to one short sentence.
- Leave Primary button text or Secondary link text blank to hide either action.
Accessibility
- Figures are a description list: each label is the term and the number its value, so the pairing holds in a screen reader (WCAG 1.3.1).
- The secondary link is underlined, so it reads as a link without relying on color (WCAG 1.4.1).
- Both actions have visible focus outlines; the button is 48px tall and the link at least 44px.
Customizing the code
- Column counts per number of figures are in the colsFor map; four figures go two across on tablets and four on desktop.
- The strip's top rule is border-t-2 border-neutral-950, and the button uses indigo-600.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Bodytextarea
- Primary button texttext
- Primary button linktext
- Secondary link texttext
- Secondary linktext
- Figuresarray
- Figures notetext