Stats Band 1
Proof numbers band: the presenter's one big line beside a cut-out, then 3–4 supplied numbers that count up once on view, an optional source note and the repeated action with a guarantee commit line.
Use it in a prompt
Use proof/stats-band from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/proof/stats-band.tsx. - Import it and pass your copy and images (Props tab):
import { StatsBand } from "@/components/funneldna/proof/stats-band"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/stats-band/component.tsx 582 lines
// layout: quote-led
// Proof numbers band: the presenter's one big line beside a cut-out, then 3–4 supplied numbers that count up once on view, an optional source note and the repeated action with a guarantee commit line.
import React from "react";
import { Check, CircleAlert, Info, Lock } from "lucide-react";
export type StatsBandStat = {
/** The supplied figure exactly as it should read, e.g. "18,400+", "62", "4.8". */
value: string;
/** Short line under the figure naming what it counts. */
label: React.ReactNode;
/** Set false for figures that should never count up (a year such as "2019"). */
count?: boolean;
};
export type StatsBandProps = {
/** Section name: the visible headline when there is no quote; read by screen readers when there is. */
heading?: string;
/** The presenter's own words, one line. Empty by default: proof is supplied, never invented. */
quote?: React.ReactNode;
/** Name shown under the quote. */
presenterName?: string;
/** Role or credential shown under the name. */
presenterRole?: string;
/** Slot "presenter-cutout": the presenter on a transparent background. */
presenterImage?: string;
/** Alt text for the cut-out; falls back to presenterName. */
presenterImageAlt?: string;
/** 3–4 supplied numbers with short labels. Empty by default. */
stats?: StatsBandStat[];
/** One line naming where the numbers come from. */
sourceNote?: React.ReactNode;
/** Count the numbers up once when the band scrolls into view (skipped under reduced motion). */
countUp?: boolean;
/** Running copy that leads into the investment line. */
actionLead?: React.ReactNode;
/** Small-caps label before the price. */
investmentLabel?: string;
price?: string;
/** Short note after the price, joined with an em dash. */
investmentNote?: string;
/** Supplied guarantee; when set, a commit checkbox sits above the button. */
guarantee?: string;
/** "{guarantee}" is replaced with the guarantee text. */
commitTemplate?: string;
/** Shown when the button is clicked with the commit box unticked. */
commitError?: string;
/** Whether the commit box starts ticked (the "error" state starts it unticked). */
defaultCommitted?: boolean;
/** Button label; the action row only shows when this is set. */
actionLabel?: string;
/** One short reassurance line under the button. */
actionNote?: string;
/** Navigation destination: the button renders as a link when set. */
href?: string;
/** Called on a valid action click (after the commit check passes). */
onAction?: () => void;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled" | "error";
className?: string;
};
export function StatsBand(props: StatsBandProps) {
const {
heading = "The numbers behind it",
quote,
presenterName = "",
presenterRole = "",
presenterImage = "",
presenterImageAlt = "",
stats = [],
sourceNote,
countUp = true,
actionLead,
investmentLabel = "Your investment",
price = "",
investmentNote = "",
guarantee = "",
commitTemplate = "I understand I'm covered by the {guarantee}.",
commitError = "Tick the box to confirm you've read the guarantee.",
defaultCommitted = true,
actionLabel = "",
actionNote = "",
href,
onAction,
disabled = false,
state = "default",
className = "",
} = props;
const uid = React.useId();
const headingId = `${uid}-heading`;
const commitId = `${uid}-commit`;
const errorId = `${uid}-error`;
const listRef = React.useRef<HTMLUListElement>(null);
const checkRef = React.useRef<HTMLInputElement>(null);
const [run, setRun] = React.useState(false);
const [committed, setCommitted] = React.useState(state === "error" ? false : defaultCommitted);
const [showError, setShowError] = React.useState(state === "error");
const shown = stats.filter((s) => s && String(s.value ?? "").trim() !== "").slice(0, 4);
const hasStats = shown.length > 0;
React.useEffect(() => {
if (state === "error") {
setCommitted(false);
setShowError(true);
} else {
setShowError(false);
setCommitted(defaultCommitted);
}
}, [state, defaultCommitted]);
React.useEffect(() => {
const el = listRef.current;
if (!countUp || !el || run) return;
if (typeof window === "undefined" || typeof IntersectionObserver === "undefined") return;
if (window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
const io = new IntersectionObserver(
(entries) => {
if (entries.some((e) => e.isIntersecting)) {
setRun(true);
io.disconnect();
}
},
{ threshold: 0.35 },
);
io.observe(el);
return () => io.disconnect();
}, [countUp, hasStats, run]);
if (!hasStats && !quote) return null;
const hasPortrait = presenterImage.trim() !== "";
const needsCommit = guarantee.trim() !== "";
const isDisabled = disabled || state === "disabled";
const commitText = commitTemplate.replace("{guarantee}", guarantee);
const errorVisible = needsCommit && showError && !committed;
const handleAction = (e: React.MouseEvent<HTMLElement>) => {
if (isDisabled) {
e.preventDefault();
return;
}
if (needsCommit && !committed) {
e.preventDefault();
setShowError(true);
checkRef.current?.focus();
return;
}
onAction?.();
};
const btnClass = [
"cf-stats-band__btn",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
]
.filter(Boolean)
.join(" ");
const button = href ? (
<a
className={btnClass}
href={isDisabled ? undefined : href}
aria-disabled={isDisabled || undefined}
onClick={handleAction}
>
{actionLabel}
</a>
) : (
<button type="button" className={btnClass} disabled={isDisabled} onClick={handleAction}>
{actionLabel}
</button>
);
return (
<section className={`cf-stats-band ${className}`.trim()} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className="cf-stats-band__inner">
{quote ? (
<>
<h2 id={headingId} className="cf-stats-band__sr">
{heading}
</h2>
<figure className={`cf-stats-band__lead${hasPortrait ? " has-portrait" : ""}`}>
{hasPortrait && (
<img
className="cf-stats-band__portrait"
src={presenterImage}
alt={presenterImageAlt || presenterName}
width={480}
height={480}
loading="lazy"
/>
)}
<blockquote className="cf-stats-band__quote">
<p>
<span className="cf-stats-band__hang" aria-hidden="true">
“
</span>
{quote}
<span aria-hidden="true">”</span>
</p>
</blockquote>
{(presenterName || presenterRole) && (
<figcaption className="cf-stats-band__cite">
{presenterName && <span className="cf-stats-band__cite-name">{presenterName}</span>}
{presenterRole && <span className="cf-stats-band__cite-role">{presenterRole}</span>}
</figcaption>
)}
</figure>
</>
) : (
<h2 id={headingId} className="cf-stats-band__heading">
{heading}
</h2>
)}
{hasStats && (
<ul
ref={listRef}
role="list"
className={`cf-stats-band__stats${run ? " is-run" : ""}`}
data-count={shown.length}
style={{ ["--n" as string]: shown.length } as React.CSSProperties}
>
{shown.map((stat, i) => (
<li
key={i}
className="cf-stats-band__stat"
style={{ ["--i" as string]: i } as React.CSSProperties}
>
<CountValue
value={String(stat.value).trim()}
run={run && countUp && stat.count !== false}
delay={Math.min(i * 70, 280)}
/>
<span className="cf-stats-band__bar" aria-hidden="true" />
<span className="cf-stats-band__label">{stat.label}</span>
</li>
))}
</ul>
)}
{hasStats && sourceNote && (
<p className="cf-stats-band__source">
<Info className="cf-stats-band__inline-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{sourceNote}
</p>
)}
{actionLabel && (
<div className="cf-stats-band__action">
<div className="cf-stats-band__pitch">
{(actionLead || price) && (
<p className="cf-stats-band__copy">
{actionLead}
{actionLead && price ? " " : null}
{price && (
<span className="cf-stats-band__invest">
<span className="cf-stats-band__invest-key">
<span className="cf-stats-band__sc">{investmentLabel}:</span>{" "}
<strong className="cf-stats-band__price">{price}</strong>
</span>
{investmentNote ? ` — ${investmentNote}` : null}
</span>
)}
</p>
)}
{needsCommit && (
<div className="cf-stats-band__commit-wrap">
<label className="cf-stats-band__commit" htmlFor={commitId}>
<span className="cf-stats-band__check">
<input
ref={checkRef}
id={commitId}
type="checkbox"
className="cf-stats-band__field"
checked={committed}
aria-invalid={errorVisible || undefined}
aria-describedby={errorVisible ? errorId : undefined}
onChange={(e) => {
setCommitted(e.target.checked);
if (e.target.checked) setShowError(false);
}}
/>
<span className="cf-stats-band__box" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
</span>
<span className="cf-stats-band__commit-text">{commitText}</span>
</label>
{errorVisible && (
<p id={errorId} role="alert" className="cf-stats-band__error">
<CircleAlert className="cf-stats-band__inline-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{commitError}
</p>
)}
</div>
)}
</div>
<div className="cf-stats-band__go">
{button}
{actionNote && (
<p className="cf-stats-band__note">
<Lock className="cf-stats-band__inline-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{actionNote}
</p>
)}
</div>
</div>
)}
</div>
</section>
);
}
export default StatsBand;
type Figure = { prefix: string; suffix: string; number: number; decimals: number; grouped: boolean };
function parseFigure(value: string): Figure | null {
const m = /^([^0-9]*)([0-9][0-9,]*(?:[.][0-9]+)?)(.*)$/.exec(value);
if (!m) return null;
const raw = m[2];
const number = Number(raw.replace(/,/g, ""));
if (!Number.isFinite(number)) return null;
const dot = raw.indexOf(".");
return {
prefix: m[1],
suffix: m[3],
number,
decimals: dot === -1 ? 0 : raw.length - dot - 1,
grouped: raw.includes(","),
};
}
function formatFigure(n: number, f: Figure) {
return n.toLocaleString("en-US", {
minimumFractionDigits: f.decimals,
maximumFractionDigits: f.decimals,
useGrouping: f.grouped,
});
}
// The final value is always in the DOM (screen-reader copy and a width ghost); only the visible copy counts.
function CountValue({ value, run, delay }: { value: string; run: boolean; delay: number }) {
const figure = React.useMemo(() => parseFigure(value), [value]);
const [live, setLive] = React.useState(value);
React.useEffect(() => {
setLive(value);
if (!run || !figure) return;
let frame = 0;
let start = 0;
const duration = 1400;
const tick = (now: number) => {
if (!start) start = now + delay;
const t = Math.min(1, Math.max(0, (now - start) / duration));
const eased = 1 - Math.pow(1 - t, 3);
setLive(t >= 1 ? value : figure.prefix + formatFigure(figure.number * eased, figure) + figure.suffix);
if (t < 1) frame = requestAnimationFrame(tick);
};
frame = requestAnimationFrame(tick);
return () => cancelAnimationFrame(frame);
}, [run, figure, value, delay]);
return (
<span className="cf-stats-band__num">
<span className="cf-stats-band__sr">{value}</span>
<span className="cf-stats-band__digits" aria-hidden="true">
<span className="cf-stats-band__ghost">{value}</span>
<span>{live}</span>
</span>
</span>
);
}
// Theme notes: every colour reads a contract token (hex only as the last var() fallback).
// The commit checkbox is a field: the native input reads --field / --field-ink / --field-focus, the drawn box reads --field / --field-border.
// Checked, the box is a solid --success status badge with a white tick (theme-contract §1, status icon badges); the white
// comes through the component-scoped --sb-tick-ink variable, whose last fallback is #fff.
const CSS = `
.cf-stats-band{
--sb-shadow:var(--shadow,oklch(0.22 0.03 260));
--sb-hair:oklch(from var(--band-ink,#fff) l c h / 0.16);
--sb-btn:var(--button-bg,var(--cta,#d63a2f));
--sb-btn-2:var(--button-bg-2,var(--cta-2,#b52e25));
position:relative;
overflow-x:clip;
background:var(--band,#1b2a4a);
color:var(--band-ink,#fff);
font-family:var(--font-body);
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);
}
.cf-stats-band *,.cf-stats-band *::before,.cf-stats-band *::after{box-sizing:border-box}
.cf-stats-band__inner{max-width:1120px;margin:0 auto}
.cf-stats-band__sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-stats-band__heading,.cf-stats-band__quote p{
margin:0;
font-family:var(--font-display);
font-weight:var(--display-weight,800);
text-transform:var(--display-case,none);
letter-spacing:var(--display-tracking,-0.025em);
font-size:clamp(2rem,3.6vw,3.25rem);
line-height:1.06;
text-wrap:balance;
color:var(--band-ink,#fff);
}
.cf-stats-band__lead{margin:0;display:grid;grid-template-columns:minmax(0,1fr);row-gap:24px}
.cf-stats-band__lead.has-portrait{
grid-template-columns:minmax(0,300px) minmax(0,1fr);
grid-template-areas:"portrait quote" "portrait cite";
grid-template-rows:auto 1fr;
column-gap:clamp(32px,5vw,72px);
}
.cf-stats-band__portrait{
grid-area:portrait;
align-self:end;
display:block;
width:100%;
height:auto;
aspect-ratio:1;
object-fit:contain;
object-position:center bottom;
border-radius:0;
filter:drop-shadow(0 2px 3px oklch(from var(--sb-shadow) l c h / 0.4)) drop-shadow(0 14px 18px oklch(from var(--sb-shadow) l c h / 0.32));
}
.cf-stats-band__quote{grid-area:quote;margin:0}
.cf-stats-band__hang{margin-inline-start:-0.42em}
.cf-stats-band__cite{grid-area:cite;align-self:start;display:flex;flex-direction:column;gap:4px}
.cf-stats-band__cite-name{font-size:1.0625rem;line-height:1.3;font-weight:800}
.cf-stats-band__cite-role{font-size:0.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-stats-band__stats{
list-style:none;
margin:clamp(40px,6vw,64px) 0 0;
padding:0;
display:grid;
grid-template-columns:repeat(var(--n,4),minmax(0,1fr));
gap:32px;
}
.cf-stats-band__stat{display:flex;flex-direction:column;gap:12px;min-width:0;container-type:inline-size}
.cf-stats-band__num{position:relative;display:block}
.cf-stats-band__digits{
display:grid;
font-family:var(--font-display);
font-weight:var(--display-weight,800);
font-size:min(clamp(2.5rem,4.2vw,3.75rem),19cqi);
line-height:1;
letter-spacing:-0.03em;
font-variant-numeric:tabular-nums;
white-space:nowrap;
color:var(--band-ink,#fff);
}
.cf-stats-band__digits > span{grid-area:1 / 1}
.cf-stats-band__ghost{visibility:hidden}
.cf-stats-band__bar{display:block;width:40px;height:4px;border-radius:999px;background:var(--accent-fill,var(--accent,#2f6fd6));transform-origin:left center}
.cf-stats-band__label{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-stats-band__stats.is-run .cf-stats-band__stat{animation:cf-sb-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
.cf-stats-band__stats.is-run .cf-stats-band__bar{animation:cf-sb-grow 1.4s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
@keyframes cf-sb-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-sb-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.cf-stats-band__source{margin:24px 0 0;font-size:0.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty;color:var(--band-ink,#fff)}
.cf-stats-band__inline-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;flex:none}
.cf-stats-band__action{
margin-top:clamp(40px,6vw,64px);
display:grid;
grid-template-columns:minmax(0,1fr) auto;
gap:24px 48px;
align-items:center;
}
.cf-stats-band__pitch{display:grid;gap:16px;max-width:64ch;min-width:0}
.cf-stats-band__copy{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-stats-band__invest-key{white-space:nowrap}
.cf-stats-band__sc{font-variant-caps:all-small-caps;letter-spacing:.06em;font-weight:800}
.cf-stats-band__price{font-family:var(--font-display);font-weight:var(--display-weight,800);font-variant-numeric:tabular-nums}
.cf-stats-band__commit-wrap{display:grid;gap:12px;justify-items:start}
.cf-stats-band__commit{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;cursor:pointer;font-size:0.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-stats-band__check{position:relative;display:block;width:24px;height:24px;margin-top:-1px}
.cf-stats-band__check input,.cf-stats-band__field{
position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;
background:var(--field,#fff);
color:var(--field-ink,#101828);
accent-color:var(--field-focus,var(--accent,#2f6fd6));
border-radius:6px;
}
.cf-stats-band__box{
display:grid;place-items:center;width:24px;height:24px;border-radius:6px;
background:var(--field,#fff);
border:2px solid var(--field-border,color-mix(in oklch,var(--field-ink,#101828) 35%,var(--field,#fff)));
color:transparent;
pointer-events:none;
transition:background .16s ease,border-color .16s ease;
}
.cf-stats-band__commit:hover .cf-stats-band__box{border-color:color-mix(in oklch,var(--field-ink,#101828) 65%,var(--field,#fff))}
/* Solid status badge: --success fill with a white tick (status icon badge rule); white only as the var() fallback. */
.cf-stats-band__check input:checked + .cf-stats-band__box{background:var(--success,#1f7a3d);border-color:var(--success,#1f7a3d);color:var(--sb-tick-ink,#fff)}
.cf-stats-band__check input[aria-invalid="true"] + .cf-stats-band__box{border-color:var(--danger,#c0392b)}
.cf-stats-band__check input:focus-visible + .cf-stats-band__box{outline:3px solid var(--band-ink,#fff);outline-offset:2px}
.cf-stats-band__error{margin:0;padding:6px 12px;border-radius:10px;background:var(--danger-soft,#fbe7e5);color:var(--danger,#b4261a);font-size:0.9375rem;line-height:1.4;font-weight:700;text-wrap:pretty}
.cf-stats-band__go{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}
.cf-stats-band__btn{
display:inline-flex;align-items:center;justify-content:center;
min-height:64px;min-width:300px;max-width:100%;padding:12px 28px;border:0;
border-radius:var(--button-radius,var(--radius,12px));
font-family:var(--button-font,var(--font-display));
font-weight:var(--button-weight,800);
text-transform:var(--button-case,none);
font-size:clamp(1.125rem,1.55vw,1.375rem);
line-height:1.15;
text-align:center;
text-wrap:balance;
text-decoration:none;
color:var(--button-ink,var(--cta-ink,#fff));
text-shadow:var(--button-text-shadow,none);
background:linear-gradient(oklch(from var(--sb-btn) calc(l + 0.04) c h),oklch(from var(--sb-btn-2) calc(l - 0.02) c h));
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--sb-btn) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--sb-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--sb-shadow) l c h / 0.4),0 8px 16px -6px oklch(from var(--sb-shadow) l c h / 0.5));
cursor:pointer;
transition:transform .16s ease,box-shadow .16s ease,background .16s ease,filter .16s ease;
}
.cf-stats-band__btn:hover:not(:disabled):not([aria-disabled="true"]),.cf-stats-band__btn.is-hover{
background:linear-gradient(oklch(from var(--sb-btn) calc(l - 0.01) c h),oklch(from var(--sb-btn-2) calc(l - 0.07) c h));
transform:translateY(-1px);
box-shadow:inset 0 1px 0 oklch(from var(--sb-btn) calc(l + 0.12) c h / 0.7),inset 0 -3px 0 oklch(from var(--sb-btn) calc(l - 0.2) c h),0 1px 2px oklch(from var(--sb-shadow) l c h / 0.45),0 12px 20px -6px oklch(from var(--sb-shadow) l c h / 0.6);
}
.cf-stats-band__btn:active:not(:disabled):not([aria-disabled="true"]),.cf-stats-band__btn.is-active{
background:linear-gradient(oklch(from var(--sb-btn) calc(l - 0.06) c h),oklch(from var(--sb-btn-2) calc(l - 0.08) c h));
transform:translateY(1px);
box-shadow:inset 0 2px 4px oklch(from var(--sb-btn) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--sb-btn) calc(l - 0.16) c h),0 1px 1px oklch(from var(--sb-shadow) l c h / 0.4);
}
.cf-stats-band__btn:focus-visible{outline:3px solid var(--band-ink,#fff);outline-offset:3px}
.cf-stats-band__btn:disabled,.cf-stats-band__btn[aria-disabled="true"]{
cursor:not-allowed;
filter:saturate(.3);
transform:none;
box-shadow:inset 0 1px 0 oklch(from var(--sb-btn) calc(l + 0.1) c h / 0.5),inset 0 -2px 0 oklch(from var(--sb-btn) calc(l - 0.12) c h);
}
.cf-stats-band__note{margin:0;font-size:0.9375rem;line-height:1.4;font-weight:500;text-align:center;text-wrap:pretty;color:var(--band-ink,#fff)}
@media (min-width:641px) and (max-width:960px){
.cf-stats-band__stats[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:40px}
}
@media (max-width:640px){
.cf-stats-band__lead.has-portrait{
grid-template-columns:112px minmax(0,1fr);
grid-template-areas:"quote quote" "portrait cite";
grid-template-rows:auto auto;
column-gap:16px;
}
.cf-stats-band__lead.has-portrait .cf-stats-band__cite{align-self:center}
.cf-stats-band__hang{margin-inline-start:0}
.cf-stats-band__stats{grid-template-columns:max-content minmax(0,1fr);gap:0 20px}
.cf-stats-band__stat{
grid-column:1 / -1;
display:grid;
grid-template-columns:auto minmax(0,1fr);
grid-template-columns:subgrid;
align-items:center;
gap:0 20px;
padding:16px 0;
container-type:normal;
}
.cf-stats-band__stat + .cf-stats-band__stat{border-top:1px solid var(--sb-hair)}
.cf-stats-band__digits{font-size:2.5rem}
.cf-stats-band__bar{display:none}
.cf-stats-band__action{grid-template-columns:minmax(0,1fr)}
.cf-stats-band__go{align-items:stretch}
.cf-stats-band__btn{width:100%;min-width:0}
}
@media (prefers-reduced-motion: reduce){
.cf-stats-band__stats.is-run .cf-stats-band__stat,.cf-stats-band__stats.is-run .cf-stats-band__bar{animation:none}
.cf-stats-band__btn,.cf-stats-band__box{transition:none}
.cf-stats-band__btn:hover:not(:disabled):not([aria-disabled="true"]),.cf-stats-band__btn.is-hover,.cf-stats-band__btn:active:not(:disabled):not([aria-disabled="true"]),.cf-stats-band__btn.is-active{transform:none}
}
`;
pieces/proof/stats-band/specimen.tsx 34 lines
import __studioImageefa5d52e from "../assets/c464c1e2770dc32e.webp";
import { StatsBand, type StatsBandProps } from "../stats-band";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function StatsBandSpecimen({ state = "default" }: { state?: StatsBandProps["state"] }) {
const sample = defaults.sample;
return (
<StatsBand
state={state}
heading="Proof your first funnel is closer than you think"
quote="I built this kit so you can stop planning and launch your first funnel this month."
presenterName="Maya Torres"
presenterRole={`Creator of ${sample.name}`}
presenterImage={slot("presenter-cutout", __studioImageefa5d52e)}
presenterImageAlt={`Maya Torres, creator of ${sample.name}`}
stats={[
{ value: "18,400+", label: "Starter Kits downloaded" },
{ value: "62", label: "countries with a live first funnel" },
{ value: "31,000+", label: "pages planned in the workbook" },
{ value: "7", label: "years teaching first-time funnel builders" },
]}
sourceNote="Figures from our store and download records, October 2026."
actionLead={sample.lead}
price={sample.price}
investmentNote={sample.note}
guarantee={sample.guarantee}
actionLabel="Send Me The Starter Kit"
actionNote={sample.sublabel}
/>
);
}
| Name | Type | Details |
|---|---|---|
heading OptionalStatsBand |
string |
|
quote OptionalStatsBand |
React.ReactNode |
|
presenterName OptionalStatsBand |
string |
|
presenterRole OptionalStatsBand |
string |
|
presenterImage OptionalStatsBand |
string |
|
presenterImageAlt OptionalStatsBand |
string |
|
stats OptionalStatsBand |
StatsBandStat[] |
|
sourceNote OptionalStatsBand |
React.ReactNode |
|
countUp OptionalStatsBand |
boolean |
|
actionLead OptionalStatsBand |
React.ReactNode |
|
investmentLabel OptionalStatsBand |
string |
|
price OptionalStatsBand |
string |
|
investmentNote OptionalStatsBand |
string |
|
guarantee OptionalStatsBand |
string |
|
commitTemplate OptionalStatsBand |
string |
|
commitError OptionalStatsBand |
string |
|
defaultCommitted OptionalStatsBand |
boolean |
|
actionLabel OptionalStatsBand |
string |
|
actionNote OptionalStatsBand |
string |
|
href OptionalStatsBand |
string |
|
onAction OptionalStatsBand |
() => void |
|
disabled OptionalStatsBand |
boolean |
|
state OptionalStatsBand |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalStatsBand |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c464c1e2770dc32e.webp
image/webp · 140 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB