Block 42 of 297
Stats Quote
Split section pairing one oversized, sourced statistic with a pull quote that supports it.
- Puck key
- StatsQuoteBlock
- Export
- statsQuoteBlock
- React component
- <StatsQuote />
- Path
- components/puck/stats-quote-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 two-column section that puts one large statistic, its label, context and source on one side and a dark pull-quote card on the other. The quote can sit left or right on desktop; on phones the number always comes first. Leave the quote blank and it becomes a centered, number-only section.
- An impact page pairing an outcome figure with a teacher or client's view
- An annual report spread built around one headline result
- A case-for-support page where a number needs a human voice
Writing the content
- Keep Number short, like 73% or $1.2M; it prints very large and long values wrap.
- Write What it counts to finish the sentence the number starts, and use Context for why it matters.
- Always fill in Source with who measured it and when.
- Without a Photo URL, the speaker's initials appear in a circle.
Accessibility
- The Heading field renders at the level you choose (H1 to H4) even though it is styled as a small label, so the outline stays correct (WCAG 1.3.1).
- The number and its label are one paragraph, so they are read together as a single statement rather than as a stray figure.
- The quote uses figure, blockquote and figcaption; the large quotation mark and the initials circle are hidden from assistive technology.
Customizing the code
- The number's size steps through text-7xl, sm:text-8xl and lg:text-9xl; reduce these if your figures run long.
- The quote card is bg-indigo-950 with indigo-200 role text, and the heading uses indigo-700; swap the family to rebrand.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Numbertext
- What it countstext
- Contexttextarea
- Sourcetext
- Quotetextarea
- Nametext
- Roletext
- Photo URLtext
- Photo alt texttext
- Quote sideradio