Block 31 of 297
Impact Stats
Headline numbers in a light or dark band, marked up as a description list.
- Puck key
- StatsBandBlock
- Export
- statsBandBlock
- React component
- <StatsBand />
- Path
- components/puck/stats-band-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 band of up to eight headline numbers, each with a label and an optional note for the source or time frame, marked off by a colored left rule. It comes in a light style or a near-black dark style. Columns adjust to the count: three across for three, four across for four or more on desktop, one column on phones.
- Annual impact figures on a home or About page
- Program results on a funder or donate page
- Key facts about a district, campus or service area
Writing the content
- Keep each Number short, such as 12,400, 98% or $2.1M, and put the context in Label.
- Use Note for the source or period, like "Fiscal year 2025" or "Audited financials", and only publish figures you can document.
- Three or four stats read best; eight is the maximum and wraps to two rows.
- Use Dark style to separate this band from neighboring white sections.
Accessibility
- Stats are a description list with the label as dt and the number and note as dd, so pairs are read together (WCAG 1.3.1). The number appears first visually through CSS order only.
- If a stat has no label, a hidden "Statistic" term keeps the list structure valid.
- Dark style switches every text color to lighter neutrals and the rule to indigo-400 for the dark background.
Customizing the code
- Column logic is in the gridCols function; values are text-4xl sm:text-5xl.
- Rule colors are border-indigo-600 for light and border-indigo-400 for dark; the dark background is bg-neutral-950.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Statsarray
- Styleradio