Testimonial Grid 2
The proof deck: customer results fanned like a staircase rising to one big featured card. Visitors swipe or
Use it in a prompt
Use proof/testimonial-grid-2 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/testimonial-grid-2.tsx. - Import it and pass your copy and images (Props tab):
import { TestimonialGrid2 } from "@/components/funneldna/proof/testimonial-grid-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/testimonial-grid-2/component.tsx 702 lines
// layout: price-staircase
// The proof deck: customer results fanned like a staircase rising to one big featured card. Visitors swipe or
// filter by outcome until they meet someone like them, then tick the guarantee and take the order click.
import React from 'react';
import { AlertCircle, ArrowRight, Check, ChevronLeft, ChevronRight, Lock, RotateCcw, SearchX, Star } from 'lucide-react';
import { animate, motion, useMotionValue, useReducedMotion, useTransform, type PanInfo } from 'motion/react';
export type ProofStory = {
/** Display name, e.g. a first name, last initial and city */
name: string;
/** Short role under the name */
role?: string;
/** Outcome group the filter chips match on (e.g. First sale) */
outcome?: string;
/** One or two sentences in their own words; quote marks are added */
quote: React.ReactNode;
/** Money phrase inside a string quote that gets the marker stroke */
highlight?: string;
/** What the numbers measure, e.g. Sales, first 30 days */
resultLabel?: string;
/** The number before */
before?: string;
/** The number after, set big */
after?: string;
/** Star rating 1 to 5; stars show only when supplied */
rating?: number;
/** Portrait URL; designed initials show when absent */
photo?: string;
/** Portrait alt text; falls back to the name */
photoAlt?: string;
};
export type TestimonialGrid2Props = {
/** Proof stories, 6 to 8 is ideal. Empty by default: the block renders nothing without real stories. */
testimonials?: ProofStory[];
/** Short label above the headline (40 characters max) */
eyebrow?: string;
headline?: string;
/** Phrase inside the headline that gets the marker stroke */
highlight?: string;
lead?: React.ReactNode;
/** Shows the outcome chips */
showFilters?: boolean;
/** Explicit chip list; defaults to the outcomes found in the stories */
filters?: string[];
/** Chip selected on first render */
initialFilter?: string;
allLabel?: string;
/** Accessible name of the chip group */
filterLabel?: string;
/** Zero-match title; placeholder {filter} */
emptyTitle?: string;
emptyText?: string;
/** Reset chip shown when a filter matches nothing */
resetLabel?: string;
beforeLabel?: string;
afterLabel?: string;
/** Accessible star label; placeholder {rating} */
ratingLabel?: string;
/** Accessible name of the deck */
deckLabel?: string;
/** Announced slide name; placeholders {current}, {total}, {name} */
slideLabel?: string;
/** Visible counter; placeholders {current}, {total} */
counterLabel?: string;
prevLabel?: string;
nextLabel?: string;
/** Hint under the deck controls */
swipeHint?: string;
/** Headline of the action card */
actionTitle?: React.ReactNode;
/** Button label; the action card is hidden when empty */
actionLabel?: string;
/** One short reassurance line under the button */
actionNote?: string;
/** Guarantee the commit checkbox confirms; no checkbox when empty */
guarantee?: string;
/** Commit line; placeholder {guarantee} */
commitLabel?: string;
/** Inline error when the button is tapped before the box is ticked */
commitError?: string;
/** Asks for the tick before onAction runs */
requireCommit?: boolean;
/** Navigation destination; the button renders as a link when set */
href?: string;
/** Called on the action click once the commit box is ticked */
onAction?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
disabled?: boolean;
/** Forces a state for previews */
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error';
/** Root class for page-level placement */
className?: string;
};
type FaceCopy = { beforeLabel: string; afterLabel: string; ratingLabel: string };
type Place = { x: number; y: number; rotate: number; scale: number; opacity: number };
type FlyRef = { current: ((dir: number) => void) | null };
const EASE: [number, number, number, number] = [0.2, 0.7, 0.2, 1];
const SPRING = { type: 'spring' as const, stiffness: 380, damping: 32, mass: 0.9 };
const LIFT = { type: 'spring' as const, stiffness: 420, damping: 30 };
export function TestimonialGrid2(props: TestimonialGrid2Props) {
const {
testimonials = [],
eyebrow = '',
headline = 'What changes when your funnel finally goes live',
highlight = 'finally goes live',
lead = 'Swipe through the results. Tap a goal to meet the people who reached it.',
showFilters = true,
filters,
initialFilter,
allLabel = 'All results',
filterLabel = 'Filter stories by outcome',
emptyTitle = 'No “{filter}” stories yet',
emptyText = 'Pick another goal, or see every result in the deck.',
resetLabel = 'Show all results',
beforeLabel = 'Before',
afterLabel = 'After',
ratingLabel = 'Rated {rating} out of 5',
deckLabel = 'Customer results',
slideLabel = 'Story {current} of {total}: {name}',
counterLabel = '{current} of {total}',
prevLabel = 'Previous story',
nextLabel = 'Next story',
swipeHint = 'Swipe the card or use your arrow keys',
actionTitle = 'Ready for a result of your own?',
actionLabel = 'I Want These Results',
actionNote = '',
guarantee = '',
commitLabel = 'I understand I’m covered by the {guarantee}.',
commitError = 'Tick the box above to confirm, then tap the button.',
requireCommit = true,
href,
onAction,
disabled = false,
state = 'default',
className,
} = props;
const uid = React.useId();
const headingId = uid + '-h';
const hintId = uid + '-hint';
const errorId = uid + '-err';
const reduce = useReducedMotion() ?? false;
const boxRef = React.useRef<HTMLInputElement>(null);
const flyRef = React.useRef<((dir: number) => void) | null>(null);
const busy = React.useRef(false);
const swipeStart = React.useRef<number | null>(null);
const [filter, setFilter] = React.useState<string | null>(initialFilter ?? null);
const [pos, setPos] = React.useState(0);
const [returning, setReturning] = React.useState<number | null>(null);
const [touched, setTouched] = React.useState(false);
const [compact, setCompact] = React.useState(false);
const [committed, setCommitted] = React.useState(false);
const [missing, setMissing] = React.useState(false);
React.useEffect(() => {
if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return undefined;
const query = window.matchMedia('(max-width: 640px)');
const sync = () => setCompact(query.matches);
sync();
query.addEventListener('change', sync);
return () => query.removeEventListener('change', sync);
}, []);
const all = testimonials.map((story, id) => ({ story, id })).filter((entry) => Boolean(entry.story && entry.story.name));
if (!all.length) return null;
const found: string[] = [];
all.forEach(({ story }) => {
const outcome = story.outcome?.trim();
if (outcome && !found.includes(outcome)) found.push(outcome);
});
const explicit = Boolean(filters && filters.length);
const chips = explicit && filters ? filters : found;
const showChips = showFilters && (explicit ? chips.length > 0 : chips.length > 1);
const active = filter && chips.includes(filter) ? filter : null;
const visible = active ? all.filter(({ story }) => story.outcome?.trim() === active) : all;
const total = visible.length;
const multi = total > 1;
const top = total ? ((pos % total) + total) % total : 0;
const current = visible[top];
const depthCount = Math.min(total, 4);
const step = compact ? { x: 10, y: 14, r: 1.4 } : { x: 26, y: 20, r: 2.2 };
const padLeft = multi ? (depthCount - 1) * step.x + (compact ? 6 : 12) : 0;
const padBottom = multi ? (depthCount - 1) * step.y + (compact ? 10 : 18) : 0;
const isDisabled = disabled || state === 'disabled';
const needsCommit = Boolean(guarantee) && requireCommit;
const showError = needsCommit && (state === 'error' || (missing && !committed));
const faceCopy: FaceCopy = { beforeLabel, afterLabel, ratingLabel };
const place = (depth: number): Place => {
const k = Math.min(depth, depthCount - 1);
return { x: -k * step.x, y: k * step.y, rotate: -k * step.r, scale: 1 - k * 0.035, opacity: depth < depthCount ? 1 : 0 };
};
const choose = (value: string | null) => {
busy.current = false;
setFilter(value);
setPos(0);
setReturning(null);
setTouched(true);
};
const advance = (id: number, animated: boolean) => {
busy.current = false;
setReturning(animated ? id : null);
setPos((p) => p + 1);
};
const next = () => {
if (!multi || busy.current) return;
if (!reduce && flyRef.current) flyRef.current(-1);
else {
setReturning(null);
setPos((p) => p + 1);
}
};
const prev = () => {
if (!multi || busy.current) return;
setReturning(null);
setPos((p) => p - 1);
};
const onKey = (event: React.KeyboardEvent<HTMLDivElement>) => {
if (!multi) return;
if (event.key === 'ArrowRight') {
event.preventDefault();
next();
} else if (event.key === 'ArrowLeft') {
event.preventDefault();
prev();
}
};
const onPointerDown = (event: React.PointerEvent<HTMLDivElement>) => {
if (reduce && multi) swipeStart.current = event.clientX;
};
const onPointerUp = (event: React.PointerEvent<HTMLDivElement>) => {
const start = swipeStart.current;
swipeStart.current = null;
if (start === null) return;
const dx = event.clientX - start;
if (dx < -48) next();
else if (dx > 48) prev();
};
const onCommit = (event: React.ChangeEvent<HTMLInputElement>) => {
setCommitted(event.target.checked);
if (event.target.checked) setMissing(false);
};
const onClick = (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => {
if (isDisabled) {
event.preventDefault();
return;
}
if (needsCommit && !committed) {
event.preventDefault();
setMissing(true);
boxRef.current?.focus();
return;
}
onAction?.(event);
};
const forced = state === 'default' ? undefined : state;
return (
<section className={cx('cf-testimonial-grid-2', className)} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className='tg2-wrap'>
<div className='tg2-head'>
{eyebrow ? <p className='tg2-eyebrow'>{eyebrow}</p> : null}
<h2 id={headingId} className='tg2-h2'>{marked(headline, highlight)}</h2>
{lead ? <p className='tg2-lead'>{lead}</p> : null}
{showChips ? (
<div className='tg2-chips' role='group' aria-label={filterLabel}>
<button type='button' className='tg2-chip' aria-pressed={!active} onClick={() => choose(null)}>
{allLabel}
<span className='tg2-count'>{all.length}</span>
</button>
{chips.map((chip) => (
<button key={chip} type='button' className='tg2-chip' aria-pressed={active === chip} onClick={() => choose(chip)}>
{chip}
<span className='tg2-count'>{all.filter(({ story }) => story.outcome?.trim() === chip).length}</span>
</button>
))}
</div>
) : null}
</div>
<div className='tg2-stage'>
{total === 0 ? (
<div className='tg2-none' role='status'>
<span className='tg2-none-icon' aria-hidden='true'>
<SearchX size={20} strokeWidth={2.5} />
</span>
<h3 className='tg2-none-title'>{fill(emptyTitle, { filter: active ?? '' })}</h3>
<p className='tg2-none-text'>{emptyText}</p>
<button type='button' className='tg2-reset' onClick={() => choose(null)}>
<RotateCcw size={16} strokeWidth={2.5} aria-hidden='true' />
{resetLabel}
</button>
</div>
) : (
<>
<div
key={active ?? '__all'}
className={cx('tg2-deck', multi && 'is-multi', touched && !reduce && 'tg2-reveal')}
style={{ paddingLeft: padLeft, paddingBottom: padBottom }}
role='region'
aria-roledescription='carousel'
aria-label={deckLabel}
aria-describedby={multi ? hintId : undefined}
tabIndex={multi ? 0 : undefined}
onKeyDown={onKey}
onPointerDown={onPointerDown}
onPointerUp={onPointerUp}
>
{visible.map(({ story, id }, index) => {
const depth = (index - top + total) % total;
return (
<DeckCard
key={id}
story={story}
depth={depth}
total={total}
hidden={depth >= depthCount}
place={place(depth)}
reduce={reduce}
draggable={multi && !reduce}
lifted={state === 'hover'}
returning={returning === id && depth !== 0}
flyRef={flyRef}
onFlyStart={() => {
busy.current = true;
}}
onGone={(animated) => advance(id, animated)}
slideText={fill(slideLabel, { current: top + 1, total, name: story.name })}
copy={faceCopy}
/>
);
})}
</div>
{multi ? (
<div className='tg2-controls' style={{ paddingLeft: padLeft }}>
<div className='tg2-nav'>
<button type='button' className='tg2-navbtn' aria-label={prevLabel} onClick={prev}>
<ChevronLeft size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
<p className='tg2-counter' aria-hidden='true'>{fill(counterLabel, { current: top + 1, total })}</p>
<button type='button' className='tg2-navbtn' aria-label={nextLabel} onClick={next}>
<ChevronRight size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
</div>
{swipeHint ? <p id={hintId} className='tg2-hint'>{swipeHint}</p> : null}
</div>
) : null}
<p className='tg2-sr' aria-live='polite'>
{multi && current ? fill(slideLabel, { current: top + 1, total, name: current.story.name }) : ''}
</p>
</>
)}
</div>
{actionLabel ? (
<div className='tg2-act'>
{actionTitle ? <h3 className='tg2-act-title'>{actionTitle}</h3> : null}
{needsCommit ? (
<label className='tg2-commit'>
<span className='tg2-box'>
<input
ref={boxRef}
type='checkbox'
checked={committed}
onChange={onCommit}
aria-invalid={showError ? true : undefined}
aria-describedby={showError ? errorId : undefined}
/>
<Check size={16} strokeWidth={3} aria-hidden='true' />
</span>
<span>{fill(commitLabel, { guarantee })}</span>
</label>
) : null}
{showError ? (
<p id={errorId} className='tg2-error' role='alert'>
<AlertCircle className='tg2-inline-icon' size={18} strokeWidth={2.5} aria-hidden='true' />
{commitError}
</p>
) : null}
{href && !isDisabled ? (
<a className='tg2-btn' href={href} data-state={forced} onClick={onClick}>
{actionLabel}
</a>
) : (
<button type='button' className='tg2-btn' disabled={isDisabled} data-state={forced} onClick={onClick}>
{actionLabel}
</button>
)}
{actionNote ? (
<p className='tg2-note'>
<Lock className='tg2-inline-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{actionNote}
</p>
) : null}
</div>
) : null}
</div>
</section>
);
}
export default TestimonialGrid2;
type DeckCardProps = {
story: ProofStory;
depth: number;
total: number;
hidden: boolean;
place: Place;
reduce: boolean;
draggable: boolean;
lifted: boolean;
returning: boolean;
flyRef: FlyRef;
onFlyStart: () => void;
onGone: (animated: boolean) => void;
slideText: string;
copy: FaceCopy;
};
// private
function DeckCard(props: DeckCardProps) {
const { story, depth, total, hidden, place, reduce, draggable, lifted, returning, flyRef, onFlyStart, onGone, slideText, copy } = props;
const isTop = depth === 0;
const cardRef = React.useRef<HTMLElement>(null);
const flying = React.useRef(false);
const x = useMotionValue(0);
const opacity = useMotionValue(1);
const rotate = useTransform(x, [-320, 0, 320], [-9, 0, 9]);
React.useLayoutEffect(() => {
if (!isTop) {
x.jump(0);
opacity.jump(1);
flying.current = false;
}
}, [isTop, x, opacity]);
const fly = React.useCallback(
(dir: number) => {
if (flying.current) return;
if (reduce) {
onGone(false);
return;
}
flying.current = true;
onFlyStart();
const width = cardRef.current?.offsetWidth ?? 520;
animate(opacity, 0, { duration: 0.3, ease: 'easeIn' });
animate(x, dir * (width + 220), { duration: 0.32, ease: EASE }).then(() => onGone(true));
},
[reduce, onGone, onFlyStart, x, opacity],
);
React.useEffect(() => {
if (!isTop) return undefined;
flyRef.current = fly;
return () => {
if (flyRef.current === fly) flyRef.current = null;
};
}, [isTop, fly, flyRef]);
const onDragEnd = (_event: MouseEvent | TouchEvent | PointerEvent, info: PanInfo) => {
if (Math.abs(info.offset.x) > 110 || Math.abs(info.velocity.x) > 650) {
fly(Math.sign(info.offset.x || info.velocity.x) || -1);
} else {
animate(x, 0, { type: 'spring', stiffness: 520, damping: 34 });
}
};
return (
<motion.div
className='tg2-slot'
style={{ zIndex: total - depth, pointerEvents: isTop ? 'auto' : 'none' }}
initial={false}
animate={place}
transition={hidden || reduce ? { duration: 0 } : { default: SPRING, opacity: { duration: 0.25 } }}
aria-hidden={isTop ? undefined : true}
>
<motion.article
ref={cardRef}
className={cx('tg2-card', isTop && 'is-top', isTop && lifted && 'is-lifted', returning && 'is-returning')}
style={{ x, rotate, opacity }}
drag={isTop && draggable ? 'x' : false}
dragMomentum={false}
onDragEnd={isTop ? onDragEnd : undefined}
animate={{ y: isTop && lifted && !reduce ? -6 : 0 }}
whileHover={isTop && !reduce ? { y: -6 } : undefined}
transition={LIFT}
role={isTop ? 'group' : undefined}
aria-roledescription={isTop ? 'slide' : undefined}
aria-label={isTop ? slideText : undefined}
>
<StoryFace story={story} copy={copy} />
</motion.article>
</motion.div>
);
}
// private
function StoryFace({ story, copy }: { story: ProofStory; copy: FaceCopy }) {
const stars = typeof story.rating === 'number' && story.rating > 0 ? Math.min(5, Math.round(story.rating)) : 0;
const hasResult = Boolean(story.before || story.after);
return (
<div className='tg2-face'>
<div className='tg2-who'>
<div className='tg2-photo'>
{story.photo ? (
<img src={story.photo} alt={story.photoAlt ?? story.name} width={104} height={104} draggable={false} decoding='async' />
) : (
<span className='tg2-mono' aria-hidden='true'>{initials(story.name)}</span>
)}
</div>
<div className='tg2-id'>
{stars ? (
<span className='tg2-stars' role='img' aria-label={fill(copy.ratingLabel, { rating: stars })}>
{[0, 1, 2, 3, 4].map((i) => (
<Star key={i} size={18} className={cx('tg2-star', i < stars ? 'is-on' : 'is-off')} strokeWidth={2.5} aria-hidden='true' />
))}
</span>
) : null}
<h3 className='tg2-name'>{story.name}</h3>
{story.role ? <p className='tg2-role'>{story.role}</p> : null}
</div>
</div>
<blockquote className='tg2-quote'>
<p>“{marked(story.quote, story.highlight)}”</p>
</blockquote>
{hasResult ? (
<div className='tg2-result'>
{story.resultLabel ? <p className='tg2-rlabel'>{story.resultLabel}</p> : null}
<div className={cx('tg2-line', !(story.before && story.after) && 'is-one')}>
{story.before ? (
<span className='tg2-was'>
<span className='tg2-k'>{copy.beforeLabel}</span>
<span className='tg2-v'>{story.before}</span>
</span>
) : null}
{story.before && story.after ? <ArrowRight className='tg2-to' size={24} strokeWidth={2.5} aria-hidden='true' /> : null}
{story.after ? (
<span className='tg2-now'>
<span className='tg2-k'>{copy.afterLabel}</span>
<span className='tg2-big'>{story.after}</span>
</span>
) : null}
</div>
</div>
) : null}
</div>
);
}
function marked(text: React.ReactNode, phrase?: string): React.ReactNode {
if (typeof text !== 'string' || !phrase) return text;
const at = text.toLowerCase().indexOf(phrase.toLowerCase());
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<mark className='tg2-mark'>{text.slice(at, at + phrase.length)}</mark>
{text.slice(at + phrase.length)}
</>
);
}
function initials(name: string) {
return name
.replace(/[.,]/g, ' ')
.split(' ')
.filter(Boolean)
.slice(0, 2)
.map((word) => word.charAt(0).toUpperCase())
.join('');
}
function fill(template: string, values: Record<string, string | number>) {
return Object.keys(values).reduce((text, key) => text.split('{' + key + '}').join(String(values[key])), template);
}
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(' ');
}
// The marker is a light highlighter from --marker, its lightness clamped to ≥ 0.88 so a dark theme marker stays a bright
// stroke, with a dark ink of its own hue: the phrase reads on light cards, dark cards and dark bands alike.
// Documented exceptions: #fae37c is the contract's default marker fallback; #fff is the white tick glyph on the solid
// --success checkbox (contract: status badges use a white glyph), both only as var() fallbacks.
// The reset button is the contract secondary button: --button-2-* colours with the primary's radius, face, weight and case.
// Filter chips and deck arrows are ghost controls on the band: their colours follow --band-ink (text follows its surface)
// and their weight follows --button-weight; the selected chip takes the accent fill.
const CSS = `
.cf-testimonial-grid-2{--tg2-shadow:var(--shadow,oklch(0.22 0.03 260));--tg2-sh-sm:var(--shadow-sm,0 1px 2px oklch(from var(--tg2-shadow) l c h / 0.2));--tg2-sh-md:var(--shadow-md,0 1px 2px oklch(from var(--tg2-shadow) l c h / 0.22),0 4px 10px -2px oklch(from var(--tg2-shadow) l c h / 0.2));--tg2-sh-lg:var(--shadow-lg,0 2px 4px oklch(from var(--tg2-shadow) l c h / 0.22),0 12px 24px -8px oklch(from var(--tg2-shadow) l c h / 0.32));--tg2-soft:color-mix(in oklab,var(--band-ink) 82%,var(--band));--tg2-marker:oklch(from var(--marker,#fae37c) max(l,0.88) min(c,0.17) h / 1);--tg2-marker-ink:oklch(from var(--marker,#fae37c) 0.24 min(c,0.05) h);--tg2-gutter:clamp(16px,5vw,48px);--tg2-border:var(--card-border,oklch(from var(--ink) l c h / 0.12));--tg2-radius:var(--card-radius,var(--radius,14px));--tg2-well:color-mix(in oklch,var(--ink) 4%,var(--card));position:relative;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) var(--tg2-gutter) clamp(64px,8.5vw,120px);overflow:hidden;overflow:clip}
.cf-testimonial-grid-2 *,.cf-testimonial-grid-2 *::before,.cf-testimonial-grid-2 *::after{box-sizing:border-box}
.cf-testimonial-grid-2 .tg2-wrap{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);grid-template-areas:'head deck' 'act deck';column-gap:clamp(32px,5vw,72px);row-gap:32px;align-items:start}
.cf-testimonial-grid-2 .tg2-head{grid-area:head;min-width:0}
.cf-testimonial-grid-2 .tg2-stage{grid-area:deck;min-width:0}
.cf-testimonial-grid-2 .tg2-eyebrow{margin:0 0 12px;font-size:0.875rem;line-height:1.2;font-weight:800;letter-spacing:0.08em;text-transform:uppercase;color:var(--tg2-soft)}
.cf-testimonial-grid-2 .tg2-h2{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
.cf-testimonial-grid-2 .tg2-mark{color:var(--tg2-marker-ink);background:linear-gradient(180deg,transparent 0 6%,var(--tg2-marker) 6% 96%,transparent 96%);border-radius:0.24em 0.5em 0.3em 0.55em;padding:0 0.12em;margin:0 -0.02em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-testimonial-grid-2 .tg2-lead{margin:16px 0 0;max-width:52ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--tg2-soft);text-wrap:pretty}
.cf-testimonial-grid-2 .tg2-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.cf-testimonial-grid-2 .tg2-chip{display:inline-flex;align-items:center;gap:8px;flex:none;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid oklch(from var(--band-ink) l c h / 0.26);background:oklch(from var(--band-ink) l c h / 0.08);color:var(--band-ink);font-family:var(--font-body);font-size:0.875rem;line-height:1.2;font-weight:var(--button-weight,800);white-space:nowrap;cursor:pointer;transition:background 0.16s ease,border-color 0.16s ease,transform 0.16s ease}
.cf-testimonial-grid-2 .tg2-chip:hover{background:oklch(from var(--band-ink) l c h / 0.16)}
.cf-testimonial-grid-2 .tg2-chip:active{transform:translateY(1px)}
.cf-testimonial-grid-2 .tg2-chip[aria-pressed='true']{background:var(--accent-fill,var(--accent));border-color:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-testimonial-grid-2 .tg2-count{font-weight:600;font-variant-numeric:tabular-nums}
.cf-testimonial-grid-2 .tg2-chip:focus-visible,.cf-testimonial-grid-2 .tg2-navbtn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-testimonial-grid-2 .tg2-deck{position:relative;display:grid;max-width:620px;margin-left:auto;padding-top:8px;touch-action:pan-y;outline:none;border-radius:calc(var(--tg2-radius) + 8px)}
.cf-testimonial-grid-2 .tg2-deck:focus-visible{outline:3px solid var(--band-ink);outline-offset:10px}
.cf-testimonial-grid-2 .tg2-slot{grid-area:1 / 1;display:flex;min-width:0}
.cf-testimonial-grid-2 .tg2-card{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;padding:clamp(20px,3vw,32px);background:color-mix(in oklch,var(--ink) 3%,var(--card));color:var(--ink);border:1px solid var(--tg2-border);border-radius:var(--tg2-radius);box-shadow:var(--tg2-sh-md);transition:box-shadow 0.2s ease,background-color 0.25s ease}
.cf-testimonial-grid-2 .tg2-card.is-top{background:var(--card);box-shadow:var(--card-shadow,var(--tg2-sh-lg))}
.cf-testimonial-grid-2 .is-multi .tg2-card.is-top{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.cf-testimonial-grid-2 .is-multi .tg2-card.is-top:active{cursor:grabbing}
.cf-testimonial-grid-2 .tg2-card.is-top.is-lifted{background:var(--card);box-shadow:var(--tg2-sh-lg),0 22px 36px -18px oklch(from var(--tg2-shadow) l c h / 0.5)}
@media (hover:hover){.cf-testimonial-grid-2 .tg2-card.is-top:hover{background:var(--card);box-shadow:var(--tg2-sh-lg),0 22px 36px -18px oklch(from var(--tg2-shadow) l c h / 0.5)}}
.cf-testimonial-grid-2 .tg2-card.is-returning{animation:tg2-return 0.36s ease 0.12s both}
@keyframes tg2-return{from{opacity:0}to{opacity:1}}
.cf-testimonial-grid-2 .tg2-face{flex:1;display:flex;flex-direction:column;gap:20px;opacity:0;transition:opacity 0.25s ease 0.05s}
.cf-testimonial-grid-2 .tg2-card.is-top .tg2-face{opacity:1}
.cf-testimonial-grid-2 .tg2-who{display:flex;align-items:flex-start;gap:16px}
.cf-testimonial-grid-2 .tg2-photo{flex:none;width:104px;height:104px;border-radius:12px;overflow:hidden;background:var(--tg2-well)}
.cf-testimonial-grid-2 .tg2-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%;-webkit-user-drag:none}
.cf-testimonial-grid-2 .tg2-mono{display:grid;place-items:center;width:100%;height:100%;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;letter-spacing:-0.01em}
.cf-testimonial-grid-2 .tg2-id{min-width:0;display:flex;flex-direction:column;gap:4px;padding-top:4px}
.cf-testimonial-grid-2 .tg2-stars{display:inline-flex;gap:2px;margin-bottom:4px}
.cf-testimonial-grid-2 .tg2-star{width:18px;height:18px;color:var(--accent-fill,var(--accent))}
.cf-testimonial-grid-2 .tg2-star.is-on{fill:currentColor}
.cf-testimonial-grid-2 .tg2-star.is-off{color:color-mix(in oklch,var(--ink) 22%,var(--card))}
.cf-testimonial-grid-2 .tg2-name{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
.cf-testimonial-grid-2 .tg2-role{margin:0;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-testimonial-grid-2 .tg2-quote{margin:0}
.cf-testimonial-grid-2 .tg2-quote p{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.45;font-weight:500;color:var(--ink);text-wrap:pretty}
.cf-testimonial-grid-2 .tg2-result{margin-top:auto;padding:16px 20px;border-radius:10px;background:var(--tg2-well)}
.cf-testimonial-grid-2 .tg2-rlabel{margin:0 0 12px;font-size:0.875rem;line-height:1.2;font-weight:800;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted)}
.cf-testimonial-grid-2 .tg2-line{display:grid;grid-template-columns:auto auto minmax(0,1fr);column-gap:14px;row-gap:8px;align-items:last baseline;justify-items:start}
.cf-testimonial-grid-2 .tg2-was,.cf-testimonial-grid-2 .tg2-now{display:contents}
.cf-testimonial-grid-2 .tg2-was .tg2-k{grid-column:1;grid-row:1}
.cf-testimonial-grid-2 .tg2-was .tg2-v{grid-column:1;grid-row:2}
.cf-testimonial-grid-2 .tg2-now .tg2-k{grid-column:3;grid-row:1}
.cf-testimonial-grid-2 .tg2-now .tg2-big{grid-column:3;grid-row:2;min-width:0}
.cf-testimonial-grid-2 .tg2-line.is-one{grid-template-columns:minmax(0,1fr)}
.cf-testimonial-grid-2 .tg2-line.is-one .tg2-k,.cf-testimonial-grid-2 .tg2-line.is-one .tg2-v,.cf-testimonial-grid-2 .tg2-line.is-one .tg2-big{grid-column:1}
.cf-testimonial-grid-2 .tg2-k{font-size:0.875rem;line-height:1.2;font-weight:800;color:var(--muted)}
.cf-testimonial-grid-2 .tg2-v{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;color:var(--muted)}
.cf-testimonial-grid-2 .tg2-big{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--accent)}
.cf-testimonial-grid-2 .tg2-to{grid-column:2;grid-row:2;align-self:center;width:24px;height:24px;color:var(--muted)}
.cf-testimonial-grid-2 .tg2-controls{max-width:620px;margin:20px 0 0 auto}
.cf-testimonial-grid-2 .tg2-nav{display:flex;align-items:center;justify-content:center;gap:16px}
.cf-testimonial-grid-2 .tg2-navbtn{display:inline-grid;place-items:center;flex:none;width:48px;height:48px;padding:0;border-radius:999px;border:1px solid oklch(from var(--band-ink) l c h / 0.28);background:oklch(from var(--band-ink) l c h / 0.08);color:var(--band-ink);font-weight:var(--button-weight,800);cursor:pointer;transition:background 0.16s ease,transform 0.16s ease}
.cf-testimonial-grid-2 .tg2-navbtn:hover{background:oklch(from var(--band-ink) l c h / 0.18)}
.cf-testimonial-grid-2 .tg2-navbtn:active{transform:scale(0.95)}
.cf-testimonial-grid-2 .tg2-counter{margin:0;min-width:6ch;text-align:center;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.2;font-variant-numeric:tabular-nums;color:var(--band-ink)}
.cf-testimonial-grid-2 .tg2-hint{margin:12px 0 0;text-align:center;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--tg2-soft);text-wrap:pretty}
.cf-testimonial-grid-2 .tg2-reveal{animation:tg2-rise 0.45s cubic-bezier(0.2,0.7,0.2,1) both}
@keyframes tg2-rise{from{opacity:0.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-testimonial-grid-2 .tg2-none{max-width:520px;margin-left:auto;display:flex;flex-direction:column;align-items:center;gap:12px;padding:clamp(28px,4vw,48px) clamp(20px,3vw,32px);text-align:center;background:var(--card);color:var(--ink);border:1px solid var(--tg2-border);border-radius:var(--tg2-radius);box-shadow:var(--tg2-sh-md)}
.cf-testimonial-grid-2 .tg2-none-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--muted)}
.cf-testimonial-grid-2 .tg2-none-title{margin:4px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance;color:var(--ink)}
.cf-testimonial-grid-2 .tg2-none-text{margin:0;max-width:40ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-testimonial-grid-2 .tg2-reset{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:8px;padding:0 18px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--tg2-shadow) l c h / 0.2)));font-family:var(--button-font,var(--font-display));font-size:0.9375rem;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);line-height:1.2;cursor:pointer;transition:background 0.16s ease,transform 0.16s ease}
.cf-testimonial-grid-2 .tg2-reset:hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.04) c h)}
.cf-testimonial-grid-2 .tg2-reset:active{transform:translateY(1px)}
.cf-testimonial-grid-2 .tg2-reset:focus-visible,.cf-testimonial-grid-2 .tg2-btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / 0.6);outline-offset:3px}
.cf-testimonial-grid-2 .tg2-act{grid-area:act;min-width:0;max-width:30rem;display:flex;flex-direction:column;gap:16px;padding:clamp(20px,3vw,28px);background:var(--card);color:var(--ink);border:1px solid var(--tg2-border);border-radius:var(--tg2-radius);box-shadow:var(--card-shadow,var(--tg2-sh-md))}
.cf-testimonial-grid-2 .tg2-act-title{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance;color:var(--ink)}
.cf-testimonial-grid-2 .tg2-commit{display:flex;align-items:flex-start;gap:12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.45;font-weight:600;color:var(--label-ink,var(--ink));cursor:pointer;text-wrap:pretty}
.cf-testimonial-grid-2 .tg2-box{position:relative;flex:none;width:26px;height:26px}
.cf-testimonial-grid-2 .tg2-box input{display:block;appearance:none;-webkit-appearance:none;width:100%;height:100%;margin:0;border:2px solid var(--field-border,oklch(from var(--field-ink,var(--ink)) l c h / 0.45));border-radius:8px;background:var(--field,var(--card));cursor:pointer;transition:background-color 0.16s ease,border-color 0.16s ease}
.cf-testimonial-grid-2 .tg2-box input:hover{border-color:oklch(from var(--field-ink,var(--ink)) l c h / 0.7)}
.cf-testimonial-grid-2 .tg2-box input:checked{background:var(--success);border-color:var(--success)}
.cf-testimonial-grid-2 .tg2-box input[aria-invalid='true']{border-color:var(--danger)}
.cf-testimonial-grid-2 .tg2-box input:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / 0.45);outline-offset:2px}
.cf-testimonial-grid-2 .tg2-box svg{position:absolute;inset:0;margin:auto;width:16px;height:16px;color:var(--success-ink,#fff);opacity:0;transform:scale(0.6);pointer-events:none;transition:opacity 0.16s ease,transform 0.16s ease}
.cf-testimonial-grid-2 .tg2-box input:checked + svg{opacity:1;transform:none}
.cf-testimonial-grid-2 .tg2-error{margin:-4px 0 0;padding:10px 14px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:0.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-testimonial-grid-2 .tg2-inline-icon{display:inline-block;vertical-align:-0.18em;margin-inline-end:0.4em}
.cf-testimonial-grid-2 .tg2-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + 0.04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));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-decoration:none;text-wrap:balance;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--tg2-shadow) l c h / 0.3),0 8px 16px -6px oklch(from var(--tg2-shadow) l c h / 0.45));cursor:pointer;transition:transform 0.16s ease,box-shadow 0.16s ease,background 0.16s ease}
.cf-testimonial-grid-2 .tg2-btn:hover:not(:disabled),.cf-testimonial-grid-2 .tg2-btn[data-state='hover']{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.1) c h / 0.7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.2) c h),0 1px 2px oklch(from var(--tg2-shadow) l c h / 0.32),0 10px 18px -6px oklch(from var(--tg2-shadow) l c h / 0.5))}
.cf-testimonial-grid-2 .tg2-btn:active:not(:disabled),.cf-testimonial-grid-2 .tg2-btn[data-state='active']{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - 0.2) c h / 0.55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 1px oklch(from var(--tg2-shadow) l c h / 0.25)}
.cf-testimonial-grid-2 .tg2-btn:disabled{cursor:not-allowed;opacity:0.55;transform:none;box-shadow:none}
.cf-testimonial-grid-2 .tg2-note{margin:-4px 0 0;text-align:center;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-testimonial-grid-2 .tg2-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:900px){.cf-testimonial-grid-2 .tg2-wrap{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'deck' 'act';row-gap:28px}.cf-testimonial-grid-2 .tg2-deck,.cf-testimonial-grid-2 .tg2-controls,.cf-testimonial-grid-2 .tg2-none{margin-left:auto;margin-right:auto}.cf-testimonial-grid-2 .tg2-act{width:100%;max-width:620px;margin-inline:auto}}
@media (max-width:640px){.cf-testimonial-grid-2 .tg2-chips{margin-top:20px}.cf-testimonial-grid-2 .tg2-chip{min-height:44px;padding:0 14px}.cf-testimonial-grid-2 .tg2-photo{width:80px;height:80px}.cf-testimonial-grid-2 .tg2-card{padding:20px}.cf-testimonial-grid-2 .tg2-face{gap:16px}.cf-testimonial-grid-2 .tg2-result{padding:14px 16px}.cf-testimonial-grid-2 .tg2-line{column-gap:10px}.cf-testimonial-grid-2 .tg2-act{padding:20px}.cf-testimonial-grid-2 .tg2-btn{padding:10px 16px}.cf-testimonial-grid-2 .tg2-deck:focus-visible{outline-offset:6px}}
@media (prefers-reduced-motion:reduce){.cf-testimonial-grid-2 *,.cf-testimonial-grid-2 *::before,.cf-testimonial-grid-2 *::after{animation:none !important;transition:none !important}}
`;
pieces/proof/testimonial-grid-2/specimen.tsx 102 lines
import __studioImageab025695 from "../assets/6454b37040901bf9.webp";
import __studioImage50c89eeb from "../assets/7c77ec73406358c0.webp";
import __studioImage808bf045 from "../assets/594d65100d2291b6.webp";
import React from 'react';
import TestimonialGrid2, { type ProofStory } from '../testimonial-grid-2';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled', 'error'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'error';
export default function TestimonialGrid2Specimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample;
const dana = slot('testimonial-1', __studioImageab025695);
const marcus = slot('testimonial-2', __studioImage50c89eeb);
const priya = slot('testimonial-3', __studioImage808bf045);
const stories: ProofStory[] = [
{
name: 'Dana R., Austin',
role: 'Yoga teacher',
outcome: 'First sale',
quote: 'I’d bought three courses and never launched. I mapped one funnel on a Sunday and made my first sale by Friday.',
highlight: 'made my first sale by Friday',
resultLabel: 'Sales, first 30 days',
before: '$0',
after: '$1,840',
rating: 5,
photo: dana,
photoAlt: 'Portrait of Dana R.',
},
{
name: 'Marcus T., Leeds',
role: 'Bookkeeping coach',
outcome: 'More leads',
quote: 'The workbook made me rewrite my headline around one promise. Same ads, same budget, and my opt-ins jumped.',
highlight: 'my opt-ins jumped',
resultLabel: 'Leads per week',
before: '4',
after: '31',
rating: 5,
photo: marcus,
photoAlt: 'Portrait of Marcus T.',
},
{
name: 'Priya S., Toronto',
role: 'Jewellery maker',
outcome: 'Saved time',
quote: 'The checklist caught a broken form I’d never have found. I launched in nine days, not six weeks.',
highlight: 'launched in nine days',
resultLabel: 'Time to launch',
before: '6 wks',
after: '9 days',
rating: 5,
photo: priya,
photoAlt: 'Portrait of Priya S.',
},
{
name: 'Jo K., Denver',
role: 'Strength coach',
outcome: 'First sale',
quote: 'One page, one offer, one button. Twelve people joined my 8-week program in the first month.',
highlight: 'Twelve people joined',
resultLabel: 'Program sign-ups',
before: '0',
after: '12',
},
{
name: 'Elena M., Lisbon',
role: 'Language tutor',
outcome: 'More leads',
quote: 'I swapped my homepage for a simple opt-in page. My list grew more in six weeks than in two years.',
highlight: 'more in six weeks than in two years',
resultLabel: 'Email list',
before: '120',
after: '940',
},
{
name: 'Sam O., Cork',
role: 'Wedding photographer',
outcome: 'Saved time',
quote: 'I used to rebuild every page from scratch. Now I plan it once and follow the same steps every launch.',
highlight: 'plan it once',
resultLabel: 'Hours per page',
before: '20',
after: '5',
},
];
return (
<TestimonialGrid2
testimonials={stories}
actionTitle={'Get ' + sample.name + ' for ' + sample.price}
actionLabel='Send Me The Starter Kit'
actionNote={sample.sublabel}
guarantee={sample.guarantee}
state={state}
onAction={() => undefined}
/>
);
}
| Name | Type | Details |
|---|---|---|
testimonials OptionalTestimonialGrid2 |
ProofStory[] |
|
eyebrow OptionalTestimonialGrid2 |
string |
|
headline OptionalTestimonialGrid2 |
string |
|
highlight OptionalTestimonialGrid2 |
string |
|
lead OptionalTestimonialGrid2 |
React.ReactNode |
|
showFilters OptionalTestimonialGrid2 |
boolean |
|
filters OptionalTestimonialGrid2 |
string[] |
|
initialFilter OptionalTestimonialGrid2 |
string |
|
allLabel OptionalTestimonialGrid2 |
string |
|
filterLabel OptionalTestimonialGrid2 |
string |
|
emptyTitle OptionalTestimonialGrid2 |
string |
|
emptyText OptionalTestimonialGrid2 |
string |
|
resetLabel OptionalTestimonialGrid2 |
string |
|
beforeLabel OptionalTestimonialGrid2 |
string |
|
afterLabel OptionalTestimonialGrid2 |
string |
|
ratingLabel OptionalTestimonialGrid2 |
string |
|
deckLabel OptionalTestimonialGrid2 |
string |
|
slideLabel OptionalTestimonialGrid2 |
string |
|
counterLabel OptionalTestimonialGrid2 |
string |
|
prevLabel OptionalTestimonialGrid2 |
string |
|
nextLabel OptionalTestimonialGrid2 |
string |
|
swipeHint OptionalTestimonialGrid2 |
string |
|
actionTitle OptionalTestimonialGrid2 |
React.ReactNode |
|
actionLabel OptionalTestimonialGrid2 |
string |
|
actionNote OptionalTestimonialGrid2 |
string |
|
guarantee OptionalTestimonialGrid2 |
string |
|
commitLabel OptionalTestimonialGrid2 |
string |
|
commitError OptionalTestimonialGrid2 |
string |
|
requireCommit OptionalTestimonialGrid2 |
boolean |
|
href OptionalTestimonialGrid2 |
string |
|
onAction OptionalTestimonialGrid2 |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
disabled OptionalTestimonialGrid2 |
boolean |
|
state OptionalTestimonialGrid2 |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
className OptionalTestimonialGrid2 |
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.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border 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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
testimonial-1- An image this piece places.
testimonial-2- An image this piece places.
testimonial-3- An image this piece places.
-
594d65100d2291b6.webp
image/webp · 182 KB
-
6454b37040901bf9.webp
image/webp · 176 KB
-
7c77ec73406358c0.webp
image/webp · 124 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB