Check Your Inbox 1
Gets a new lead to find, open and read the confirmation email, so the freebie actually gets used.
Use it in a prompt
Use checkout/check-your-inbox 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/check-your-inbox.tsx. - Import it and pass your copy and images (Props tab):
import { CheckYourInbox } from "@/components/funneldna/checkout/check-your-inbox"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/check-your-inbox/component.tsx 429 lines
// Gets a new lead to find, open and read the confirmation email, so the freebie actually gets used.
// layout: interview-qa
import * as React from "react"
import { Check, Copy, Inbox, Mail, Search } from "lucide-react"
export type CheckYourInboxProvider = {
id: string // "gmail" | "outlook" | "yahoo" show their official marks; any other id shows a mail icon
name: string
href: string // webmail address opened in a new tab
}
export type CheckYourInboxProps = {
headlineStart?: React.ReactNode // words before the highlighted phrase
headlineHighlight?: React.ReactNode // phrase under the marker stroke
subheadline?: string // "{product}" is replaced with productName
productName?: string
senderName?: string // the From name the reader should look for
senderInitials?: string // avatar letters; derived from senderName when omitted
subject?: string // the subject line to look for
preview?: string // first line of the email, shown under the subject
lookQuestion?: string
checkQuestion?: string
inboxLabel?: string
newLabel?: string // unread pill on the inbox row
providers?: CheckYourInboxProvider[]
openLabel?: string // "{provider}" is replaced with the provider name
email?: string // the subscriber's address; a recognised provider moves first and becomes the main button
sentToLabel?: string // "{email}" is replaced with email
tipLead?: string
tip?: string
copy?: {
copySubject?: string
copied?: string
copyFailed?: string
copiedAnnouncement?: string
fromLabel?: string
subjectLabel?: string
newTab?: string
}
state?: "default" | "hover" | "active" | "disabled"
onAction?: (providerId: string) => void // called when a provider button is clicked
className?: string
}
const DEFAULT_PROVIDERS: CheckYourInboxProvider[] = [
{ id: "gmail", name: "Gmail", href: "https://mail.google.com/" },
{ id: "outlook", name: "Outlook", href: "https://outlook.live.com/mail/" },
{ id: "yahoo", name: "Yahoo", href: "https://mail.yahoo.com/" },
]
const DEFAULT_COPY = {
copySubject: "Copy subject",
copied: "Copied",
copyFailed: "Copy failed",
copiedAnnouncement: "Subject copied. Paste it into your inbox search.",
fromLabel: "From:",
subjectLabel: "Subject:",
newTab: "(opens in a new tab)",
}
export function CheckYourInbox(props: CheckYourInboxProps) {
const {
headlineStart = "One more step:",
headlineHighlight = "check your inbox",
subheadline = "Open the email we sent you to get {product}.",
productName = "The Funnel Starter Kit",
senderName = "The Funnel Starter Kit",
senderInitials,
subject = "Build your first funnel with a clear plan",
preview = "Your kit is ready to download.",
lookQuestion = "What should I look for?",
checkQuestion = "Where do you check your email?",
inboxLabel = "Inbox",
newLabel = "New",
providers = DEFAULT_PROVIDERS,
openLabel = "Open {provider}",
email,
sentToLabel = "Sent to {email}",
tipLead = "Can’t find it?",
tip = "Check your Promotions or Spam folder, then move it to your inbox.",
state = "default",
onAction,
className,
} = props
const copy = { ...DEFAULT_COPY, ...props.copy }
const disabled = state === "disabled"
const uid = React.useId()
const [copyState, setCopyState] = React.useState<"idle" | "copied" | "failed">("idle")
const timer = React.useRef<ReturnType<typeof setTimeout> | null>(null)
React.useEffect(() => {
return () => {
if (timer.current) clearTimeout(timer.current)
}
}, [])
const copySubject = async () => {
let next: "copied" | "failed" = "failed"
try {
if (typeof navigator !== "undefined" && navigator.clipboard) {
await navigator.clipboard.writeText(subject)
next = "copied"
}
} catch {
next = "failed"
}
setCopyState(next)
if (timer.current) clearTimeout(timer.current)
timer.current = setTimeout(() => setCopyState("idle"), 2400)
}
const match = detectProvider(email)
const hasMatch = Boolean(match && providers.some((p) => p.id === match))
const ordered = hasMatch
? [...providers].sort((a, b) => (a.id === match ? -1 : b.id === match ? 1 : 0))
: providers
const initials = senderInitials ?? initialsOf(senderName)
const copyText =
copyState === "copied" ? copy.copied : copyState === "failed" ? copy.copyFailed : copy.copySubject
const announce =
copyState === "copied" ? copy.copiedAnnouncement : copyState === "failed" ? copy.copyFailed : ""
return (
<div className={["cf-check-your-inbox", className].filter(Boolean).join(" ")} data-state={state}>
<style>{CSS}</style>
<div className="cyi-head">
<h2 className="cyi-title cyi-reveal">
{headlineStart}{" "}
<span className="cyi-hl">{headlineHighlight}</span>
</h2>
<p className="cyi-sub cyi-reveal">{fill(subheadline, "product", productName)}</p>
{email ? (
<p className="cyi-sentto cyi-reveal">
<Mail aria-hidden="true" />
<span>{fill(sentToLabel, "email", email)}</span>
</p>
) : null}
</div>
<section className="cyi-qa cyi-reveal cyi-d1" aria-labelledby={`${uid}-look`}>
<h3 className="cyi-q" id={`${uid}-look`}>
<span className="cyi-qmark" aria-hidden="true">Q.</span>
<span>{lookQuestion}</span>
</h3>
<div className="cyi-a">
<div className="cyi-inbox">
<div className="cyi-bar">
<span className="cyi-inbox-label">
<Inbox aria-hidden="true" />
{inboxLabel}
</span>
<button
type="button"
className="cyi-copy"
data-copy={copyState}
onClick={copySubject}
disabled={disabled}
>
{copyState === "copied" ? <Check aria-hidden="true" /> : <Copy aria-hidden="true" />}
<span>{copyText}</span>
</button>
</div>
<div className="cyi-rows">
<GhostRow />
<div className="cyi-row">
<span className="cyi-dot" aria-hidden="true" />
<span className="cyi-avatar" aria-hidden="true">
{initials}
</span>
<div className="cyi-meta">
<p className="cyi-fromline">
<span className="cyi-from">
<span className="cyi-sr">{copy.fromLabel} </span>
{senderName}
</span>
<span className="cyi-new">{newLabel}</span>
</p>
<p className="cyi-subject">
<span className="cyi-sr">{copy.subjectLabel} </span>
{subject}
</p>
{preview ? <p className="cyi-preview">{preview}</p> : null}
</div>
</div>
<GhostRow short />
</div>
<span className="cyi-sr" aria-live="polite">
{announce}
</span>
</div>
</div>
</section>
<section className="cyi-qa cyi-reveal cyi-d2" aria-labelledby={`${uid}-where`}>
<h3 className="cyi-q" id={`${uid}-where`}>
<span className="cyi-qmark" aria-hidden="true">Q.</span>
<span>{checkQuestion}</span>
</h3>
<div className="cyi-a">
<ul className="cyi-providers">
{ordered.map((p, i) => {
const isMatch = hasMatch && p.id === match
const cls = [
"cyi-btn",
hasMatch && !isMatch ? "is-secondary" : "",
i === 0 && state === "hover" ? "is-hover" : "",
i === 0 && state === "active" ? "is-active" : "",
]
.filter(Boolean)
.join(" ")
const label = fill(openLabel, "provider", p.name)
return (
<li
key={p.id}
className={isMatch ? "is-match" : undefined}
style={{ "--cyi-i": i } as React.CSSProperties}
>
{disabled ? (
<a className={cls} role="link" aria-disabled="true">
<ProviderMark id={p.id} />
<span>{label}</span>
</a>
) : (
<a
className={cls}
href={p.href}
target="_blank"
rel="noopener noreferrer"
onClick={() => onAction?.(p.id)}
>
<ProviderMark id={p.id} />
<span>{label}</span>
<span className="cyi-sr"> {copy.newTab}</span>
</a>
)}
</li>
)
})}
</ul>
<p className="cyi-tip">
<Search aria-hidden="true" />
<span>
<strong>{tipLead}</strong> {tip}
</span>
</p>
</div>
</section>
</div>
)
}
export default CheckYourInbox
function GhostRow({ short = false }: { short?: boolean }) {
return (
<div className={short ? "cyi-ghost is-short" : "cyi-ghost"} aria-hidden="true">
<i className="cyi-gav" />
<i className="cyi-gl" />
<i className="cyi-gl cyi-gl-2" />
</div>
)
}
// Official provider marks keep their brand colours (theme-contract §3 exception, SVG only).
function ProviderMark({ id }: { id: string }) {
if (id === "gmail") {
return (
<svg className="cyi-pmark" viewBox="0 0 32 32" aria-hidden="true" focusable="false" data-official-mark="Gmail">
<rect x="0.5" y="0.5" width="31" height="31" rx="7.5" fill="#ffffff" stroke="#000000" strokeOpacity="0.1" />
<g transform="translate(5.1 7.2) scale(0.42)">
<path fill="#4285f4" d="M3.6 42h8.4V21.6L0 12.6v25.8C0 40.4 1.6 42 3.6 42z" />
<path fill="#34a853" d="M40 42h8.4c2 0 3.6-1.6 3.6-3.6V12.6l-12 9z" />
<path fill="#fbbc04" d="M40 6v15.6l12-9V7.8C52 3.4 46.9.8 43.4 3.6z" />
<path fill="#ea4335" d="M12 21.6V6l14 10.5L40 6v15.6L26 32.1z" />
<path fill="#c5221f" d="M0 7.8v4.8l12 9V6L8.6 3.6C5.1.8 0 3.4 0 7.8z" />
</g>
</svg>
)
}
if (id === "outlook") {
return (
<svg className="cyi-pmark" viewBox="0 0 32 32" aria-hidden="true" focusable="false" data-official-mark="Microsoft Outlook">
<rect x="0.5" y="0.5" width="31" height="31" rx="7.5" fill="#ffffff" stroke="#000000" strokeOpacity="0.1" />
<rect x="12" y="9" width="15" height="14" rx="2" fill="#28a8ea" />
<path fill="#0364b8" d="M12 14.5l7.5 4.5 7.5-4.5V21a2 2 0 0 1-2 2H14a2 2 0 0 1-2-2z" />
<rect x="4" y="8.5" width="13" height="15" rx="2" fill="#0078d4" />
<ellipse cx="10.5" cy="16" rx="3.2" ry="4.2" fill="none" stroke="#ffffff" strokeWidth="2.2" />
</svg>
)
}
if (id === "yahoo") {
return (
<svg className="cyi-pmark" viewBox="0 0 32 32" aria-hidden="true" focusable="false" data-official-mark="Yahoo Mail">
<rect width="32" height="32" rx="7.5" fill="#6001d2" />
<path fill="#ffffff" d="M6 9.5h3.9l3.3 5.9 3.3-5.9h3.8l-5.3 9.1V23h-3.6v-4.4z" />
<path fill="#ffffff" d="M22.5 9.5h4l-1.2 9h-1.6z" />
<circle cx="24.5" cy="21.4" r="1.75" fill="#ffffff" />
</svg>
)
}
return <Mail className="cyi-pmark cyi-pmark-generic" aria-hidden="true" />
}
function detectProvider(email?: string): string | undefined {
const domain = email?.split("@")[1]?.trim().toLowerCase()
if (!domain) return undefined
const base = domain.split(".")[0]
if (base === "gmail" || base === "googlemail") return "gmail"
if (["outlook", "hotmail", "live", "msn"].includes(base)) return "outlook"
if (["yahoo", "ymail", "rocketmail"].includes(base)) return "yahoo"
return undefined
}
function fill(template: string, key: string, value: string) {
return template.split(`{${key}}`).join(value)
}
function initialsOf(name: string) {
const words = name.split(" ").filter(Boolean)
const kept = words.filter((w) => !["the", "a", "an"].includes(w.toLowerCase()))
return (kept.length ? kept : words)
.slice(0, 2)
.map((w) => w.charAt(0))
.join("")
.toUpperCase()
}
const R = ".cf-check-your-inbox"
const CSS = `
${R}{--cyi-marker:var(--marker,#fae37c);--cyi-shadow:var(--shadow,oklch(0.22 0.03 260));--cyi-btn:var(--button-bg,var(--cta));--cyi-radius:var(--radius,12px);display:block;width:100%;max-width:48rem;margin-inline:auto;color:var(--ink);font-family:var(--font-body,system-ui,sans-serif);text-align:left}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} :is(h2,h3,p,ul){margin:0}
${R} ul{padding:0;list-style:none}
${R} .cyi-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
${R} .cyi-title{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2.375rem,6.2vw,4.25rem);line-height:1.04;color:var(--ink);text-wrap:balance}
${R} .cyi-hl{padding:0 .14em;margin:0 -.04em;border-radius:.18em .5em .26em .42em;background:linear-gradient(178deg,transparent 50%,var(--cyi-marker) 50%,var(--cyi-marker) 91%,transparent 91%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
${R} .cyi-sub{margin-top:clamp(1rem,1.6vw,1.375rem);max-width:60ch;font-size:clamp(1.125rem,1.9vw,1.375rem);font-weight:500;line-height:1.45;color:var(--muted);text-wrap:pretty}
${R} .cyi-sentto{display:inline-flex;align-items:center;gap:.5rem;max-width:100%;margin-top:1rem;padding:.375rem .875rem;border-radius:999px;background:color-mix(in oklch,var(--ink) 5%,var(--surface));color:var(--ink);font-size:.9375rem;font-weight:600;overflow-wrap:anywhere}
${R} .cyi-sentto svg{width:1rem;height:1rem;flex:none;color:var(--muted)}
${R} .cyi-qa{margin-top:clamp(2.25rem,4.5vw,3.25rem)}
${R} .cyi-q{display:grid;grid-template-columns:2.25rem minmax(0,1fr);align-items:baseline;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,2.3vw,1.625rem);line-height:1.2;color:var(--ink);text-wrap:balance}
${R} .cyi-qmark{color:var(--accent)}
${R} .cyi-a{margin-top:1rem;padding-left:2.25rem}
${R} .cyi-inbox{position:relative;overflow:hidden;background:var(--card);border:1px solid var(--card-border,color-mix(in oklch,var(--ink) 12%,transparent));border-radius:var(--card-radius,var(--cyi-radius));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--cyi-shadow) l c h / 0.22),0 4px 10px -2px oklch(from var(--cyi-shadow) l c h / 0.2)))}
${R} .cyi-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;padding:.625rem .75rem .625rem 1.125rem;background:color-mix(in oklch,var(--ink) 4%,var(--card));border-bottom:1px solid oklch(from var(--ink) l c h / 0.1)}
${R} .cyi-inbox-label{display:inline-flex;align-items:center;gap:.5rem;font-size:1rem;font-weight:700;color:var(--ink)}
${R} .cyi-inbox-label svg{width:1.125rem;height:1.125rem;flex:none;color:var(--muted)}
${R} .cyi-copy{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.75rem;padding:0 .875rem;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--cyi-radius));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow, var(--shadow-sm));font:inherit;font-size:.9375rem;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background-color .16s ease,transform .14s cubic-bezier(.23,1,.32,1),color .16s ease}
${R} .cyi-copy svg{width:1rem;height:1rem;flex:none}
${R} .cyi-copy:active:not(:disabled){transform:translateY(1px)}
${R} .cyi-copy:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
${R} .cyi-copy[data-copy=copied]{background:var(--success-soft);color:var(--success);box-shadow:inset 0 0 0 1px oklch(from var(--success) l c h / 0.35)}
${R} .cyi-copy[data-copy=failed]{background:var(--danger-soft);color:var(--danger);box-shadow:inset 0 0 0 1px oklch(from var(--danger) l c h / 0.35)}
${R} .cyi-copy:disabled{cursor:not-allowed;opacity:.6;box-shadow:none}
${R} .cyi-rows{display:grid;gap:.25rem;padding:.5rem}
${R} .cyi-ghost{display:grid;grid-template-columns:2.75rem minmax(0,1fr);grid-template-rows:auto auto;column-gap:.875rem;row-gap:.5rem;align-items:center;padding:.75rem 1.125rem .75rem 2.375rem}
${R} .cyi-gav{display:block;grid-row:1 / span 2;width:2.75rem;height:2.75rem;border-radius:50%;background:color-mix(in oklch,var(--ink) 7%,var(--card))}
${R} .cyi-gl{display:block;width:42%;height:.625rem;border-radius:999px;background:color-mix(in oklch,var(--ink) 9%,var(--card))}
${R} .cyi-gl-2{width:68%;background:color-mix(in oklch,var(--ink) 6%,var(--card))}
${R} .cyi-ghost.is-short .cyi-gl{width:34%}
${R} .cyi-ghost.is-short .cyi-gl-2{width:56%}
${R} .cyi-row{position:relative;display:grid;grid-template-columns:.625rem 2.75rem minmax(0,1fr);column-gap:.875rem;align-items:start;padding:1rem 1.125rem 1rem .875rem;border:1px solid oklch(from var(--accent-fill, var(--accent)) l c h / 0.3);border-radius:calc(var(--cyi-radius) * 0.75);background:color-mix(in oklch,var(--accent-fill,var(--accent)) 9%,var(--card));box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--cyi-shadow) l c h / 0.18),0 1px 3px oklch(from var(--cyi-shadow) l c h / 0.14))}
${R} .cyi-dot{width:.625rem;height:.625rem;margin-top:1.0625rem;border-radius:50%;background:var(--accent-fill,var(--accent))}
${R} .cyi-avatar{display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;background:var(--band);color:var(--band-ink);font-family:var(--font-display,inherit);font-size:1rem;font-weight:800;letter-spacing:.02em}
${R} .cyi-meta{display:grid;gap:.25rem;min-width:0}
${R} .cyi-fromline{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .625rem}
${R} .cyi-from{font-size:1.0625rem;font-weight:800;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
${R} .cyi-new{padding:.0625rem .75rem;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-size:.875rem;font-weight:700;line-height:1.5}
${R} .cyi-subject{font-size:1.0625rem;font-weight:700;line-height:1.35;color:var(--ink);text-wrap:pretty;overflow-wrap:anywhere}
${R} .cyi-preview{font-size:1rem;line-height:1.45;color:color-mix(in oklch,var(--ink) 78%,var(--card));text-wrap:pretty}
${R} .cyi-providers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13.5rem),1fr));gap:.875rem}
${R} .cyi-providers li{display:flex;min-width:0}
${R} .cyi-providers li.is-match{grid-column:1 / -1}
${R} .cyi-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:.75rem;min-height:4rem;padding:.75rem 1rem;border:1px solid oklch(from var(--cyi-btn) calc(l - 0.12) c h);border-radius:var(--button-radius,var(--cyi-radius));background:linear-gradient(180deg,oklch(from var(--cyi-btn) calc(l + 0.04) c h),var(--button-bg-2,var(--cta-2)));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display,inherit));font-size:clamp(1.0625rem,1.6vw,1.1875rem);font-weight:var(--button-weight,800);text-transform:var(--button-case,none);line-height:1.15;text-wrap:balance;text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--cyi-btn) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--cyi-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--cyi-shadow) l c h / 0.3),0 5px 12px -4px oklch(from var(--cyi-shadow) l c h / 0.4));cursor:pointer;transition:transform .14s cubic-bezier(.23,1,.32,1),background .16s ease,box-shadow .16s ease}
${R} .cyi-pmark{width:1.75rem;height:1.75rem;flex:none;filter:drop-shadow(0 1px 1.5px oklch(from var(--cyi-shadow) l c h / 0.35))}
${R} .cyi-pmark-generic{width:1.5rem;height:1.5rem;filter:none}
${R} .cyi-btn.is-hover{background:linear-gradient(180deg,oklch(from var(--cyi-btn) calc(l + 0.01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.04) c h));transform:translateY(-1px)}
${R} .cyi-btn.is-active,${R} .cyi-btn:not([aria-disabled=true]):active{background:linear-gradient(180deg,oklch(from var(--cyi-btn) calc(l - 0.06) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.06) c h));transform:translateY(1px);box-shadow:inset 0 2px 3px oklch(from var(--cyi-btn) calc(l - 0.22) c h / 0.55),0 1px 1px oklch(from var(--cyi-shadow) l c h / 0.25)}
${R} .cyi-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
${R} .cyi-btn.is-secondary{min-height:3.5rem;border-color:var(--button-2-border,transparent);background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm))}
${R} .cyi-btn.is-secondary.is-hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.03) c h)}
${R} .cyi-btn[aria-disabled=true]{border-color:transparent;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:none;cursor:not-allowed;transform:none}
${R} .cyi-btn[aria-disabled=true] .cyi-pmark{filter:grayscale(1);opacity:.6}
@media (hover:hover) and (pointer:fine){
${R} .cyi-btn:not([aria-disabled=true]):not(.is-secondary):hover{background:linear-gradient(180deg,oklch(from var(--cyi-btn) calc(l + 0.01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.04) c h));transform:translateY(-1px)}
${R} .cyi-btn.is-secondary:not([aria-disabled=true]):hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.03) c h);transform:translateY(-1px)}
${R} .cyi-copy:not(:disabled)[data-copy=idle]:hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.03) c h)}
}
${R} .cyi-tip{display:flex;align-items:flex-start;gap:.625rem;margin-top:1.25rem;font-size:1rem;line-height:1.5;color:var(--muted);text-wrap:pretty}
${R} .cyi-tip svg{width:1.125rem;height:1.125rem;flex:none;margin-top:.19rem;color:var(--muted)}
${R} .cyi-tip strong{font-weight:700;color:var(--ink)}
${R} .cyi-reveal{animation:cyi-rise .45s cubic-bezier(.23,1,.32,1) both}
${R} .cyi-d1{animation-delay:.08s}
${R} .cyi-d2{animation-delay:.16s}
${R} .cyi-row{animation:cyi-arrive .6s cubic-bezier(.23,1,.32,1) .2s both}
${R} .cyi-dot{animation:cyi-pulse 1.1s ease-in-out .7s 2}
${R} .cyi-providers li{animation:cyi-rise .45s cubic-bezier(.23,1,.32,1) both;animation-delay:calc(var(--cyi-i,0) * 60ms + 160ms)}
@keyframes cyi-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cyi-arrive{from{opacity:.82;transform:translateY(-12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes cyi-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.45)}}
@media (max-width:560px){
${R} .cyi-q{grid-template-columns:1.875rem minmax(0,1fr)}
${R} .cyi-a{padding-left:0}
${R} .cyi-bar{padding:.5rem .5rem .5rem .875rem}
${R} .cyi-rows{padding:.375rem}
${R} .cyi-row{grid-template-columns:.5rem 2.5rem minmax(0,1fr);column-gap:.625rem;padding:.875rem .875rem .875rem .625rem}
${R} .cyi-dot{width:.5rem;height:.5rem;margin-top:1rem}
${R} .cyi-avatar{width:2.5rem;height:2.5rem;font-size:.9375rem}
${R} .cyi-ghost{grid-template-columns:2.5rem minmax(0,1fr);column-gap:.625rem;padding:.625rem .875rem .625rem 1.75rem}
${R} .cyi-gav{width:2.5rem;height:2.5rem}
${R} .cyi-btn{min-height:3.75rem}
}
@media (prefers-reduced-motion:reduce){
${R} .cyi-reveal,${R} .cyi-row,${R} .cyi-dot,${R} .cyi-providers li{animation:none}
${R} .cyi-btn,${R} .cyi-copy{transition-duration:.01ms}
${R} .cyi-btn.is-hover,${R} .cyi-btn.is-active,${R} .cyi-btn:hover,${R} .cyi-btn:active,${R} .cyi-copy:active{transform:none}
}
`
pieces/checkout/check-your-inbox/specimen.tsx 21 lines
import { CheckYourInbox } from "../check-your-inbox"
import defaults from "../../studio-defaults.json"
export const states = ["default", "hover", "active", "disabled"]
export default function CheckYourInboxSpecimen({
state = "default",
}: {
state?: "default" | "hover" | "active" | "disabled"
}) {
const sample = defaults.sample
return (
<CheckYourInbox
state={state}
productName={sample.name}
senderName={sample.name}
subject={sample.headline}
preview={sample.actionStatus}
/>
)
}
| Name | Type | Details |
|---|---|---|
headlineStart OptionalCheckYourInbox |
React.ReactNode |
|
headlineHighlight OptionalCheckYourInbox |
React.ReactNode |
|
subheadline OptionalCheckYourInbox |
string |
|
productName OptionalCheckYourInbox |
string |
|
senderName OptionalCheckYourInbox |
string |
|
senderInitials OptionalCheckYourInbox |
string |
|
subject OptionalCheckYourInbox |
string |
|
preview OptionalCheckYourInbox |
string |
|
lookQuestion OptionalCheckYourInbox |
string |
|
checkQuestion OptionalCheckYourInbox |
string |
|
inboxLabel OptionalCheckYourInbox |
string |
|
newLabel OptionalCheckYourInbox |
string |
|
providers OptionalCheckYourInbox |
CheckYourInboxProvider[] |
|
openLabel OptionalCheckYourInbox |
string |
|
email OptionalCheckYourInbox |
string |
|
sentToLabel OptionalCheckYourInbox |
string |
|
tipLead OptionalCheckYourInbox |
string |
|
tip OptionalCheckYourInbox |
string |
|
copy OptionalCheckYourInbox |
{
copySubject?: string
copied?: string
copyFailed?: string
copiedAnnouncement?: string
fromLabel?: string
subjectLabel?: string
newTab?: string
} |
|
state OptionalCheckYourInbox |
"default" | "hover" | "active" | "disabled" |
|
onAction OptionalCheckYourInbox |
(providerId: string) => void |
|
className OptionalCheckYourInbox |
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-focus- 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.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB