Thankyou Block 3
Waitlist welcome: the visitor's place in line counts up, the launch window and three next stops make the wait feel concrete, and one optional question earns a small second yes that keeps the lead warm until launch.
Use it in a prompt
Use checkout/thankyou-block-3 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/checkout/thankyou-block-3.tsx. - Import it and pass your copy and images (Props tab):
import { ThankyouBlock3 } from "@/components/funneldna/checkout/thankyou-block-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/thankyou-block-3/component.tsx 442 lines
// layout: classic-centred-stack
// Waitlist welcome: the visitor's place in line counts up, the launch window and three next stops make the wait feel concrete, and one optional question earns a small second yes that keeps the lead warm until launch.
import * as React from "react"
import { AlertCircle, CalendarDays, Check, Gift, ListChecks, Mail } from "lucide-react"
import { FX_HOST, Pattern } from "../fx/fx"
export type WaitlistStep = {
title: string
detail?: string
/** Icon inside the stop's disc; a sensible lucide icon is used when omitted. */
icon?: React.ReactNode
/** Fills the disc with the accent: the one stop to notice (the perk). */
featured?: boolean
}
export type WaitlistOption = { value: string; label: string }
export type ThankyouBlock3Copy = {
/** Caption under the numeral, also read by screen readers. */
positionLabel: string
/** Printed before the number, e.g. "#". Empty string hides it. */
positionPrefix: string
/** Text before the supplied launch date. */
launchLabel: string
/** Inline error when the form is sent without an answer. */
error: string
}
export type ThankyouBlock3Props = {
/** The visitor's supplied place in line. The numeral hides when absent. */
position?: number
/** Number formatting locale for the numeral. */
locale?: string
headline?: React.ReactNode
/** Key phrase after the headline, swiped with one marker stroke. */
highlight?: React.ReactNode
lead?: React.ReactNode
/** Supplied launch date or window ("March 2027"). Hidden when absent. */
launchDate?: string
/** Product cut-out (slot "product"), transparent background. */
productImage?: string
productImageAlt?: string
/** What happens next, in order. */
steps?: WaitlistStep[]
/** Supplied early-member perk, shown as the featured middle stop. Never shown unless supplied. */
perk?: WaitlistStep
/** The optional question; empty hides the form. */
question?: React.ReactNode
questionNote?: React.ReactNode
options?: WaitlistOption[]
/** Radio group name. */
name?: string
defaultValue?: string
submitLabel?: string
submitNote?: React.ReactNode
/** Called with the chosen answer. The form never sends data itself. */
onSubmit?: (values: { answer: string; label: string }, event: React.FormEvent<HTMLFormElement>) => void
onAnswerChange?: (answer: string) => void
/** An error from the builder (e.g. the answer could not be saved). */
error?: string
/** Disables the whole form, e.g. while the builder saves the answer. */
disabled?: boolean
copy?: Partial<ThankyouBlock3Copy>
state?: "default" | "hover" | "active" | "disabled" | "error"
className?: string
id?: string
}
const COPY: ThankyouBlock3Copy = {
positionLabel: "Your place in line",
positionPrefix: "#",
launchLabel: "Waitlist access opens",
error: "Pick one answer to send it.",
}
const DEFAULT_STEPS: WaitlistStep[] = [
{ title: "Watch your inbox", detail: "Your invite arrives the day doors open." },
{ title: "Choose your plan", detail: "Pick what fits when you join." },
]
const DEFAULT_OPTIONS: WaitlistOption[] = [
{ value: "personal", label: "Just for me" },
{ value: "household", label: "My household" },
{ value: "team", label: "My team" },
{ value: "clients", label: "My clients" },
]
export function ThankyouBlock3({
position,
locale = "en-US",
headline = "You're on the list.",
highlight = "Your spot is saved.",
lead = "We'll email you the moment doors open.",
launchDate,
productImage,
productImageAlt = "",
steps = DEFAULT_STEPS,
perk,
question = "What will you use it for first?",
questionNote = "Optional. One tap helps us shape launch day.",
options = DEFAULT_OPTIONS,
name,
defaultValue,
submitLabel = "Send My Answer",
submitNote = "Takes one tap",
onSubmit,
onAnswerChange,
error,
disabled = false,
copy: copyOverrides,
state,
className,
id,
}: ThankyouBlock3Props) {
const copy: ThankyouBlock3Copy = { ...COPY, ...definedOnly(copyOverrides) }
const uid = React.useId()
const headingId = `${uid}-heading`
const noteId = `${uid}-note`
const errorId = `${uid}-error`
const groupName = name ?? `${uid}-answer`
const [answer, setAnswer] = React.useState(defaultValue ?? "")
const [missing, setMissing] = React.useState(false)
const formDisabled = disabled || state === "disabled"
const showError = state === "error" || !!error || missing
const errorText = error || copy.error
const preview = state === "hover" || state === "active" ? state : undefined
const hasPosition = typeof position === "number" && Number.isFinite(position) && position > 0
const showForm = !!question && options.length > 0
const stops = steps.slice()
if (perk) stops.splice(Math.min(1, stops.length), 0, { ...perk, featured: perk.featured ?? true, icon: perk.icon ?? <Gift size={20} strokeWidth={2.5} /> })
function choose(value: string) {
setAnswer(value)
setMissing(false)
onAnswerChange?.(value)
}
function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault()
if (formDisabled) return
const chosen = options.find((option) => option.value === answer)
if (!chosen) {
setMissing(true)
return
}
setMissing(false)
onSubmit?.({ answer: chosen.value, label: chosen.label }, event)
}
const describedBy = [questionNote ? noteId : "", showError ? errorId : ""].filter(Boolean).join(" ") || undefined
return (
<section
id={id}
className={["cf-thankyou-block-3", className].filter(Boolean).join(" ")}
style={FX_HOST}
data-preview={preview}
aria-labelledby={headingId}
>
<style>{CSS}</style>
<Pattern name="rings" fade="edges" />
<div className="tb3-inner">
{hasPosition && (
<PlaceNumeral value={position as number} locale={locale} prefix={copy.positionPrefix} label={copy.positionLabel} />
)}
<h1 id={headingId} className="tb3-h1">
{headline}
{highlight && (
<>
{" "}
<span className="tb3-mark">{highlight}</span>
</>
)}
</h1>
{lead && <p className="tb3-lead">{lead}</p>}
{launchDate && (
<p className="tb3-launch">
<CalendarDays className="tb3-inline-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{copy.launchLabel} <strong>{launchDate}</strong>
</p>
)}
{productImage && (
<img className="tb3-product" src={productImage} alt={productImageAlt} width={600} height={600} loading="lazy" decoding="async" />
)}
{stops.length > 0 && (
<ol className="tb3-stops" style={{ "--tb3-stops": stops.length } as React.CSSProperties}>
{stops.map((stop, index) => (
<li key={`${stop.title}-${index}`} className={`tb3-stop${stop.featured ? " is-featured" : ""}`}>
<span className="tb3-disc" aria-hidden="true">
{stop.icon ?? (index === 0 ? <Mail size={20} strokeWidth={2.5} /> : <ListChecks size={20} strokeWidth={2.5} />)}
</span>
<span className="tb3-stop-text">
<span className="tb3-stop-title">{stop.title}</span>
{stop.detail && <span className="tb3-stop-detail">{stop.detail}</span>}
</span>
</li>
))}
</ol>
)}
{showForm && (
<form className="tb3-card" onSubmit={handleSubmit} noValidate>
<fieldset className="tb3-fieldset" disabled={formDisabled} aria-describedby={describedBy}>
<legend className="tb3-legend">
<h2 className="tb3-q">{question}</h2>
</legend>
{questionNote && (
<p id={noteId} className="tb3-qnote">
{questionNote}
</p>
)}
<div className={`tb3-chips${showError ? " is-error" : ""}`}>
{options.map((option) => {
const on = answer === option.value
return (
<label key={option.value} className={`tb3-chip${on ? " is-on" : ""}`}>
<input
type="radio"
name={groupName}
value={option.value}
checked={on}
onChange={() => choose(option.value)}
aria-invalid={showError || undefined}
/>
<span className="tb3-dot" aria-hidden="true">
{on && <Check size={14} strokeWidth={3} />}
</span>
<span className="tb3-chip-label">{option.label}</span>
</label>
)
})}
</div>
{showError && (
<p id={errorId} className="tb3-error" role="alert">
<AlertCircle className="tb3-inline-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{errorText}
</p>
)}
</fieldset>
<button type="submit" className="tb3-btn" disabled={formDisabled || !answer}>
{submitLabel}
</button>
{submitNote && <p className="tb3-note">{submitNote}</p>}
</form>
)}
</div>
</section>
)
}
export default ThankyouBlock3
const COUNT_DURATION = 1400
const useIsoLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect
/** The place-in-line numeral. The real number is in the DOM first and for screen readers; a visual copy counts up once when motion is allowed. */
function PlaceNumeral({ value, locale, prefix, label }: { value: number; locale: string; prefix: string; label: string }) {
const final = formatCount(value, locale)
const [shown, setShown] = React.useState(final)
const ref = React.useRef<HTMLSpanElement>(null)
useIsoLayoutEffect(() => {
setShown(final)
const el = ref.current
if (!el || typeof window.matchMedia !== "function") return
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return
let raf = 0
let observer: IntersectionObserver | undefined
const run = () => {
const start = performance.now()
const tick = (now: number) => {
const t = Math.min(1, (now - start) / COUNT_DURATION)
const eased = 1 - Math.pow(1 - t, 3)
setShown(formatCount(Math.round(value * eased), locale))
if (t < 1) raf = requestAnimationFrame(tick)
}
setShown(formatCount(0, locale))
raf = requestAnimationFrame(tick)
}
const rect = el.getBoundingClientRect()
if (rect.top < window.innerHeight && rect.bottom > 0) {
run()
} else if (typeof IntersectionObserver === "function") {
setShown(formatCount(0, locale))
observer = new IntersectionObserver(
(entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
observer?.disconnect()
run()
}
},
{ threshold: 0.3 },
)
observer.observe(el)
}
return () => {
cancelAnimationFrame(raf)
observer?.disconnect()
}
}, [value, locale, final])
return (
<p className="tb3-place">
<span className="tb3-sr">
{label}: {prefix}
{final}
</span>
<span className="tb3-num" ref={ref} aria-hidden="true">
<span className="tb3-ghost">
{prefix && <span className="tb3-hash">{prefix}</span>}
{final}
</span>
<span className="tb3-live">
{prefix && <span className="tb3-hash">{prefix}</span>}
{shown}
</span>
</span>
<span className="tb3-place-label" aria-hidden="true">
{label}
</span>
</p>
)
}
function formatCount(n: number, locale: string) {
try {
return new Intl.NumberFormat(locale).format(n)
} catch {
return String(n)
}
}
function definedOnly<T extends object>(input?: Partial<T>): Partial<T> {
const out: Partial<T> = {}
if (!input) return out
for (const key of Object.keys(input) as (keyof T)[]) {
if (input[key] !== undefined) out[key] = input[key]
}
return out
}
const CSS = `
.cf-thankyou-block-3{position:relative;isolation:isolate;overflow:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-thankyou-block-3 *,.cf-thankyou-block-3 *::before,.cf-thankyou-block-3 *::after{box-sizing:border-box}
.cf-thankyou-block-3 .tb3-inner{position:relative;z-index:1;max-width:46rem;margin:0 auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.cf-thankyou-block-3 .tb3-inner>*{animation:tb3-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-thankyou-block-3 .tb3-inner>:nth-child(2){animation-delay:.07s}
.cf-thankyou-block-3 .tb3-inner>:nth-child(3){animation-delay:.14s}
.cf-thankyou-block-3 .tb3-inner>:nth-child(4){animation-delay:.21s}
.cf-thankyou-block-3 .tb3-inner>:nth-child(n+5){animation-delay:.28s}
@keyframes tb3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-thankyou-block-3 .tb3-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-thankyou-block-3 .tb3-place{margin:0 0 24px;display:flex;flex-direction:column;align-items:center;gap:12px}
.cf-thankyou-block-3 .tb3-num{display:grid;justify-items:center;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,10vw,9rem);line-height:1;letter-spacing:-0.04em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-thankyou-block-3 .tb3-num>span{grid-area:1/1;display:inline-flex;align-items:flex-start;white-space:nowrap}
.cf-thankyou-block-3 .tb3-ghost{visibility:hidden}
.cf-thankyou-block-3 .tb3-hash{font-size:.46em;line-height:1;margin:.16em .08em 0 0;letter-spacing:0;color:var(--accent)}
.cf-thankyou-block-3 .tb3-place-label{font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cf-thankyou-block-3 .tb3-h1{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(--ink)}
.cf-thankyou-block-3 .tb3-mark{padding:0 .1em;margin:0 -.04em;border-radius:.2em .1em .28em .14em;background-image:linear-gradient(transparent 52%,color-mix(in oklch,var(--marker,#fae37c) 58%,var(--surface)) 52%,color-mix(in oklch,var(--marker,#fae37c) 58%,var(--surface)) 95%,transparent 95%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-thankyou-block-3 .tb3-lead{margin:16px 0 0;max-width:36rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-thankyou-block-3 .tb3-launch{display:inline-block;margin:24px 0 0;padding:6px 14px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--surface));color:var(--ink);font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-thankyou-block-3 .tb3-launch strong{font-weight:800}
.cf-thankyou-block-3 .tb3-inline-icon{display:inline-block;vertical-align:-.18em;margin-inline-end:.4em;flex:none}
.cf-thankyou-block-3 .tb3-launch .tb3-inline-icon{color:var(--accent)}
.cf-thankyou-block-3 .tb3-product{display:block;margin:32px auto 0;width:clamp(200px,22vw,300px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:0;filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .28)) drop-shadow(0 18px 22px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .2))}
.cf-thankyou-block-3 .tb3-stops{list-style:none;margin:48px 0 0;padding:0;width:100%;display:grid;grid-template-columns:repeat(var(--tb3-stops,3),minmax(0,1fr));gap:24px}
.cf-thankyou-block-3 .tb3-stop{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.cf-thankyou-block-3 .tb3-stop:not(:last-child)::after{content:"";position:absolute;top:19px;left:calc(50% + 32px);right:calc(-50% + 8px);height:2px;border-radius:2px;background:oklch(from var(--ink) l c h / .16)}
.cf-thankyou-block-3 .tb3-disc{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--surface));color:var(--accent)}
.cf-thankyou-block-3 .tb3-stop.is-featured .tb3-disc{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-thankyou-block-3 .tb3-stop-text{display:flex;flex-direction:column;gap:4px}
.cf-thankyou-block-3 .tb3-stop-title{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;font-weight:800;color:var(--ink);text-wrap:balance}
.cf-thankyou-block-3 .tb3-stop-detail{font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-thankyou-block-3 .tb3-card{width:100%;margin:48px 0 0;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / .22),0 12px 24px -8px oklch(0.22 0.03 260 / .32)));display:flex;flex-direction:column;align-items:center}
.cf-thankyou-block-3 .tb3-fieldset{margin:0;padding:0;border:0;min-width:0;width:100%}
.cf-thankyou-block-3 .tb3-legend{float:none;display:block;width:100%;padding:0;margin:0}
.cf-thankyou-block-3 .tb3-q{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink);text-wrap:balance}
.cf-thankyou-block-3 .tb3-qnote{margin:8px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-thankyou-block-3 .tb3-chips{margin-top:24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cf-thankyou-block-3 .tb3-chip{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:84px;padding:14px 12px;border-radius:var(--field-radius,var(--radius,12px));background:var(--field,var(--card));color:var(--field-ink,var(--ink));border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
.cf-thankyou-block-3 .tb3-chip input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.cf-thankyou-block-3 .tb3-chip-label{font-size:clamp(1rem,1.25vw,1.0625rem);line-height:1.25;font-weight:700;text-wrap:balance}
.cf-thankyou-block-3 .tb3-dot{display:grid;place-items:center;width:20px;height:20px;flex:none;border-radius:999px;border:2px solid oklch(from var(--field-ink,var(--ink)) l c h / .3);color:var(--accent-fill-ink,var(--card));transition:background .16s ease,border-color .16s ease}
.cf-thankyou-block-3 .tb3-chip.is-on{background:color-mix(in oklch,var(--accent) 10%,var(--field,var(--card)));border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent),var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / .2));transform:translateY(-1px)}
.cf-thankyou-block-3 .tb3-chip.is-on .tb3-dot{background:var(--accent-fill,var(--accent));border-color:var(--accent-fill,var(--accent))}
.cf-thankyou-block-3 .tb3-chip:has(input:focus-visible){outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .45);outline-offset:2px}
@media (hover:hover){
.cf-thankyou-block-3 .tb3-chip:not(.is-on):hover{border-color:oklch(from var(--field-ink,var(--ink)) l c h / .42);box-shadow:var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / .2));transform:translateY(-1px)}
}
.cf-thankyou-block-3[data-preview="hover"] .tb3-chip:not(.is-on):nth-child(2){border-color:oklch(from var(--field-ink,var(--ink)) l c h / .42);box-shadow:var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / .2));transform:translateY(-1px)}
.cf-thankyou-block-3 .tb3-chips.is-error .tb3-chip:not(.is-on){border-color:var(--danger)}
.cf-thankyou-block-3 .tb3-fieldset:disabled .tb3-chip{cursor:not-allowed;background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--muted);box-shadow:none;transform:none}
.cf-thankyou-block-3 .tb3-fieldset:disabled .tb3-chip.is-on{border-color:oklch(from var(--ink) l c h / .3);box-shadow:none}
.cf-thankyou-block-3 .tb3-error{margin:16px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger);text-wrap:pretty}
.cf-thankyou-block-3 .tb3-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:24px;min-height:56px;min-width:min(100%,18rem);padding:0 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;white-space:nowrap;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-thankyou-block-3 .tb3-btn:not(:disabled):hover,.cf-thankyou-block-3[data-preview="hover"] .tb3-btn:not(:disabled){background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .32),0 10px 18px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .52));transform:translateY(-1px)}
.cf-thankyou-block-3 .tb3-btn:not(:disabled):active,.cf-thankyou-block-3[data-preview="active"] .tb3-btn:not(:disabled){background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .06) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .24) c h / .5),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 1px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3);transform:translateY(1px)}
.cf-thankyou-block-3 .tb3-btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
.cf-thankyou-block-3 .tb3-btn:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));border:1px solid var(--button-2-border,transparent);text-shadow:none;box-shadow:none;cursor:not-allowed;transform:none}
.cf-thankyou-block-3 .tb3-note{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
@media (max-width:640px){
.cf-thankyou-block-3 .tb3-stops{grid-template-columns:1fr;max-width:22rem;margin:40px auto 0;text-align:left}
.cf-thankyou-block-3 .tb3-stop{flex-direction:row;align-items:flex-start;gap:16px;text-align:left}
.cf-thankyou-block-3 .tb3-stop:not(:last-child)::after{left:19px;right:auto;top:52px;bottom:-12px;width:2px;height:auto}
.cf-thankyou-block-3 .tb3-stop-text{padding-top:8px}
.cf-thankyou-block-3 .tb3-stop-title{text-wrap:pretty}
.cf-thankyou-block-3 .tb3-card{margin-top:40px}
.cf-thankyou-block-3 .tb3-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
.cf-thankyou-block-3 .tb3-chip{min-height:80px}
.cf-thankyou-block-3 .tb3-btn{width:100%;min-width:0;padding:0 20px}
.cf-thankyou-block-3 .tb3-product{margin-top:24px}
}
@media (prefers-reduced-motion:reduce){
.cf-thankyou-block-3 .tb3-inner>*{animation:none}
.cf-thankyou-block-3 .tb3-chip,.cf-thankyou-block-3 .tb3-dot,.cf-thankyou-block-3 .tb3-btn{transition:none}
.cf-thankyou-block-3 .tb3-chip,.cf-thankyou-block-3 .tb3-chip:hover,.cf-thankyou-block-3 .tb3-chip.is-on,.cf-thankyou-block-3 .tb3-btn,.cf-thankyou-block-3 .tb3-btn:not(:disabled):hover,.cf-thankyou-block-3 .tb3-btn:not(:disabled):active{transform:none}
}
`
pieces/checkout/thankyou-block-3/specimen.tsx 46 lines
import __studioImage7db59515 from "../assets/40b0c251993a0ee4.webp";
import * as React from "react"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
import { ThankyouBlock3 } from "../thankyou-block-3"
export const states = ["default", "hover", "active", "disabled", "error"] as const
type SpecimenState = (typeof states)[number]
export default function ThankyouBlock3Specimen({ state = "default" }: { state?: SpecimenState }) {
const preselected = state === "hover" || state === "active" || state === "disabled" ? "groceries" : undefined
return (
<ThankyouBlock3
key={state}
state={state}
position={1284}
headline="You're on the list."
highlight="Your spot is saved."
lead="We'll email you the moment Pocketbook opens, before it opens to everyone else."
launchDate="March 2027"
productImage={slot(
"product",
__studioImage7db59515,
)}
productImageAlt="The Pocketbook budgeting app on a phone"
steps={[
{ title: "Watch your inbox", detail: "Your invite arrives the day doors open." },
{ title: "Pick your plan", detail: "Monthly or yearly, chosen when you join." },
]}
perk={{ title: "Founding-family price", detail: "Half off your first three months, held for you." }}
question="What will you use Pocketbook for first?"
questionNote="Optional. One tap helps us build launch day around your family."
options={[
{ value: "groceries", label: "Groceries" },
{ value: "bills", label: "Monthly bills" },
{ value: "savings", label: "Savings goals" },
{ value: "allowance", label: "Kids' allowance" },
]}
defaultValue={preselected}
submitLabel="Send My Answer"
submitNote={defaults.sample.registration.privacy}
/>
)
}
| Name | Type | Details |
|---|---|---|
position OptionalThankyouBlock3 |
number |
|
locale OptionalThankyouBlock3 |
string |
Default "en-US"
|
headline OptionalThankyouBlock3 |
React.ReactNode |
Default "You're on the list."
|
highlight OptionalThankyouBlock3 |
React.ReactNode |
Default "Your spot is saved."
|
lead OptionalThankyouBlock3 |
React.ReactNode |
Default "We'll email you the moment doors open."
|
launchDate OptionalThankyouBlock3 |
string |
|
productImage OptionalThankyouBlock3 |
string |
|
productImageAlt OptionalThankyouBlock3 |
string |
Default ""
|
steps OptionalThankyouBlock3 |
WaitlistStep[] |
Default DEFAULT_STEPS
|
perk OptionalThankyouBlock3 |
WaitlistStep |
|
question OptionalThankyouBlock3 |
React.ReactNode |
Default "What will you use it for first?"
|
questionNote OptionalThankyouBlock3 |
React.ReactNode |
Default "Optional. One tap helps us shape launch day."
|
options OptionalThankyouBlock3 |
WaitlistOption[] |
Default DEFAULT_OPTIONS
|
name OptionalThankyouBlock3 |
string |
|
defaultValue OptionalThankyouBlock3 |
string |
|
submitLabel OptionalThankyouBlock3 |
string |
Default "Send My Answer"
|
submitNote OptionalThankyouBlock3 |
React.ReactNode |
Default "Takes one tap"
|
onSubmit OptionalThankyouBlock3 |
(values: { answer: string; label: string }, event: React.FormEvent<HTMLFormElement>) => void |
|
onAnswerChange OptionalThankyouBlock3 |
(answer: string) => void |
|
error OptionalThankyouBlock3 |
string |
|
disabled OptionalThankyouBlock3 |
boolean |
Default false
|
copy OptionalThankyouBlock3 |
Partial<ThankyouBlock3Copy> |
|
state OptionalThankyouBlock3 |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalThankyouBlock3 |
string |
|
id OptionalThankyouBlock3 |
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- 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--field-radius- 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.
product- The main product shot or cover (ebook, kit, bottle).
-
40b0c251993a0ee4.webp
image/webp · 69.1 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB