Accept Decline 1
The OTO decision pair in one response card: the Belcher yes button with its struck anchor, and the plain underlined no-thanks link beneath it that names what the buyer gives up.
Use it in a prompt
Use checkout/accept-decline 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/accept-decline.tsx. - Import it and pass your copy and images (Props tab):
import { AcceptDecline } from "@/components/funneldna/checkout/accept-decline"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/accept-decline/component.tsx 292 lines
// Presents one clear yes/no decision, restating the offer and price beside the action.
"use client"
import * as React from "react"
import { AlertCircle, Check, Loader2, LockKeyhole } from "lucide-react"
export type AcceptDeclineProps = {
/** Supporting labels; savingsTemplate replaces {amount} with the computed saving. */
copy?: Partial<AcceptDeclineCopy>
href?: string
onAction?: () => void
/** "success" is accepted for older callers and renders as default. */
state?: "default" | "hover" | "active" | "disabled" | "error" | "success"
/** The centred headline restating what the yes adds. Wrap the key phrase in <mark> for a marker stroke, e.g. <>Add <mark>12 Recorded Sales Calls</mark> to your order</>. */
recap?: React.ReactNode
/** Struck anchor, e.g. "$97". */
compareAt?: string
/** What the yes charges, e.g. "$27". */
price?: string
/** Small note under the price line, e.g. "One payment · Lifetime access". */
priceLabel?: string
/** Optional short words before the price on the same line, e.g. "Today". Hidden by default. */
priceTodayLabel?: string
/** Savings pill. Worked out from compareAt and price by default; pass false to hide. */
saveLabel?: string | false
/** Short, first person, one line: "Yes! Add It For $27". */
acceptLabel: string
/** One reassurance line under the button that kills the click-time objection. */
acceptSublabel?: string
acceptHref?: string
onAccept?: () => void
/** The exact decline wording. States the loss, never insults. */
declineLabel: React.ReactNode
/** Where the no goes: forward to the next page, never back. */
declineHref?: string
onDecline?: () => void
/** Lock line at the foot, e.g. "Secure checkout · 30-day money-back guarantee". */
secureLabel?: string
/** "cta" uses the action colour; "mono" uses the deep band colour. */
variant?: AcceptDeclineVariant
status?: AcceptDeclineStatus
/** Shorthand for status="pending". */
pending?: boolean
disabled?: boolean
errorMessage?: React.ReactNode
/** @deprecated No longer rendered: the builder wires what happens after the click. */
successTitle?: React.ReactNode
/** @deprecated No longer rendered: the builder wires what happens after the click. */
successMessage?: React.ReactNode
/** Studio preview only: show the yes button's hover or pressed look. */
previewState?: "hover" | "active"
/** Set the card on a full-width tint band for a repeated close at the bottom of the page. */
band?: boolean
className?: string
}
export function AcceptDecline({
copy: copyOverrides,
href,
onAction,
state,
recap,
compareAt,
price,
priceLabel,
priceTodayLabel,
saveLabel,
acceptLabel,
acceptSublabel = "One click. Same card. No new form.",
acceptHref,
onAccept,
declineLabel,
declineHref,
onDecline,
secureLabel,
variant = "cta",
status = "idle",
pending = false,
disabled = false,
errorMessage = "We couldn't add this to your order. Please try again.",
previewState,
band = false,
className,
}: AcceptDeclineProps) {
const copy = { ...ACCEPT_COPY, ...Object.fromEntries(Object.entries(copyOverrides ?? {}).filter(([, value]) => value !== undefined)) }
const actionHref = href !== undefined ? href : acceptHref
const action = onAction !== undefined ? onAction : onAccept
const force = state !== undefined ? (state === "hover" || state === "active" ? state : undefined) : previewState
const isDisabled = state !== undefined ? state === "disabled" : disabled
const current: AcceptDeclineStatus = state !== undefined ? (state === "error" ? state : "idle") : pending ? "pending" : status === "success" ? "idle" : status
const isPending = current === "pending"
const blocked = isDisabled || isPending
const save = saveLabel === false ? null : saveLabel ?? savingsFrom(compareAt, price, copy.savingsTemplate)
const headingId = React.useId()
const handleAccept = (event: React.MouseEvent<HTMLElement>) => {
if (blocked) {
event.preventDefault()
return
}
action?.()
}
const yesInner = (
<>
<span className="cfad-arrow cfad-ghost" aria-hidden="true" />
<span className="cfad-label">{acceptLabel}</span>
<span className="cfad-arrow" aria-hidden="true">
{isPending && <Loader2 className="cfad-spin" size={20} strokeWidth={2.75} />}
</span>
{isPending && <span className="cfad-sr">{copy.pendingLabel}</span>}
</>
)
const yesProps = {
"data-force": force,
"aria-busy": isPending || undefined,
onClick: handleAccept,
}
const card = (
<section
className={["cfad-card", !band && className].filter(Boolean).join(" ")}
data-variant={variant}
aria-labelledby={recap ? headingId : undefined}
>
{(recap || price || compareAt) && (
<div className="cfad-head">
{recap && (
<h2 id={headingId} className="cfad-recap">
{recap}
</h2>
)}
{(price || compareAt) && (
<div className="cfad-offer">
<p className="cfad-price-row">
{compareAt && (
<span className="cfad-was">
<span className="cfad-sr">{copy.regularPriceLabel}</span>
{compareAt}
</span>
)}
{priceTodayLabel && price && <span className="cfad-price-label">{priceTodayLabel}</span>}
{price && (
<span className="cfad-now">
<span className="cfad-sr">{copy.todayLabel}</span>
{price}
</span>
)}
{save && <span className="cfad-save">{save}</span>}
</p>
{priceLabel && <p className="cfad-price-note">{priceLabel}</p>}
</div>
)}
</div>
)}
<div className="cfad-act">
{current === "error" && (
<p className="cfad-alert" role="alert">
<AlertCircle size={20} aria-hidden="true" />
<span>{errorMessage}</span>
</p>
)}
{actionHref && !isDisabled ? (
<a href={actionHref} className="cfad-yes" {...yesProps} aria-disabled={blocked || undefined}>
{yesInner}
</a>
) : (
<button type="button" className="cfad-yes" {...yesProps} disabled={isDisabled} aria-disabled={isPending || undefined}>
{yesInner}
</button>
)}
{acceptSublabel && (
<p className="cfad-sub">
<Check size={18} strokeWidth={3} aria-hidden="true" />
<span>{acceptSublabel}</span>
</p>
)}
{declineHref ? (
<a href={declineHref} onClick={onDecline} className="cfad-no">
{declineLabel}
</a>
) : (
<button type="button" onClick={onDecline} className="cfad-no">
{declineLabel}
</button>
)}
</div>
{secureLabel && (
<p className="cfad-secure">
<LockKeyhole size={16} aria-hidden="true" />
<span>{secureLabel}</span>
</p>
)}
</section>
)
return (
<div className={["cf-accept-decline", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
{band ? <div className={["cfad-band", className].filter(Boolean).join(" ")}>{card}</div> : card}
</div>
)
}
/** "success" is accepted for older callers and renders as idle. */
export type AcceptDeclineStatus = "idle" | "pending" | "success" | "error"
export type AcceptDeclineVariant = "cta" | "mono"
function parseMoney(value?: string) {
if (!value) return null
const match = value.match(/-?[0-9,]*[.]?[0-9]+/)
if (!match || match.index === undefined) return null
const amount = parseFloat(match[0].replace(/,/g, ""))
if (!Number.isFinite(amount)) return null
return { amount, prefix: value.slice(0, match.index).trim() }
}
function savingsFrom(compareAt: string | undefined, price: string | undefined, template: string) {
const was = parseMoney(compareAt)
const now = parseMoney(price)
if (!was || !now) return null
const diff = Math.round((was.amount - now.amount) * 100) / 100
if (diff <= 0) return null
const text = Number.isInteger(diff) ? String(diff) : diff.toFixed(2)
return template.replaceAll("{amount}", () => `${now.prefix || was.prefix}${text}`)
}
const CSS = `
.cf-accept-decline{--_cta:var(--cta,#d92d20);--_cta2:var(--cta-2,#b42318);--_ctaink:var(--cta-ink,#ffffff);--_ink:var(--ink,#101828);--_muted:var(--muted,#4a5565);--_surface:var(--surface,#ffffff);--_band:var(--band,#0f2747);--_bandink:var(--band-ink,#ffffff);--_accent:var(--accent,#0f5fc2);--_r:var(--radius,14px);--_display:var(--font-display,Arial,sans-serif);--_body:var(--font-body,Arial,sans-serif);--_mark:var(--marker,#fae37c);container-type:inline-size;width:100%;font-family:var(--font-body,Arial,sans-serif);color:var(--_ink)}
.cf-accept-decline *,.cf-accept-decline *::before,.cf-accept-decline *::after{box-sizing:border-box}
:where(.cf-accept-decline) .cfad-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:where(.cf-accept-decline) .cfad-band{padding:clamp(2rem,6cqi,3.5rem) 1rem;background:color-mix(in oklch,var(--_ink) 4%,var(--_surface));border-block:1px solid oklch(from var(--_ink) l c h / 0.1)}
:where(.cf-accept-decline) .cfad-card{--_surface:var(--card,#ffffff);position:relative;width:100%;max-width:48rem;margin-inline:auto;display:grid;gap:clamp(1.75rem,4cqi,2.25rem);padding:clamp(1.5rem,5.5cqi,3rem) clamp(1.25rem,5cqi,2.75rem) clamp(1.25rem,4.5cqi,2.5rem);background:var(--_surface);border:1px solid oklch(from var(--_ink) l c h / 0.14);border-radius:var(--card-radius,var(--radius,calc(var(--_r) + 8px)));box-shadow:var(--card-shadow,var(--shadow-md, 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22), 0 4px 10px -2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2)));border-color:var(--card-border,oklch(from var(--ink) l c h / 0.16))}
:where(.cf-accept-decline) .cfad-head{display:grid;justify-items:center;gap:1.125rem;text-align:center}
:where(.cf-accept-decline) .cfad-recap{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,900);font-size:clamp(1.75rem,1.05rem + 3.2cqi,2.75rem);line-height:1.08;letter-spacing:var(--display-tracking,-.025em);color:var(--_ink);text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-accept-decline) .cfad-recap mark{color:inherit;padding:0 .06em;margin:0 -.02em;border-radius:.2em .45em .25em .4em;background:linear-gradient(oklch(from var(--marker,#fae37c) l c h / 0.28),oklch(from var(--marker,#fae37c) l c h / 0.28)) 0 82%/100% 44% no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone}
:where(.cf-accept-decline) .cfad-offer{display:grid;justify-items:center;gap:.5rem}
:where(.cf-accept-decline) .cfad-price-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:.875rem;row-gap:.5rem;margin:0}
:where(.cf-accept-decline) .cfad-price-label{font-size:1rem;font-weight:600;color:var(--_muted)}
:where(.cf-accept-decline) .cfad-was{position:relative;padding:0 .12em;font-family:var(--font-display,Arial,sans-serif);font-weight:700;font-size:1.375rem;line-height:1;color:var(--danger)}
:where(.cf-accept-decline) .cfad-was::after{content:"";position:absolute;left:-.06em;right:-.06em;top:52%;height:.12em;min-height:2px;border-radius:2px;background:var(--danger);transform:rotate(-10deg)}
:where(.cf-accept-decline) .cfad-now{font-family:var(--font-display,Arial,sans-serif);font-weight:900;font-size:clamp(2rem,1.6rem + 1.6cqi,2.5rem);line-height:1;letter-spacing:-.03em;color:var(--_ink)}
:where(.cf-accept-decline) .cfad-save{display:inline-flex;align-items:center;padding:.375rem .875rem;border-radius:999px;background:var(--success-soft);border:1px solid var(--success);color:var(--success);font-size:.9375rem;font-weight:800;line-height:1.2;letter-spacing:.005em;white-space:nowrap}
:where(.cf-accept-decline) .cfad-price-note{margin:0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--_muted);text-wrap:pretty}
:where(.cf-accept-decline) .cfad-act{display:grid;gap:.875rem}
:where(.cf-accept-decline) .cfad-yes{-webkit-appearance:none;appearance:none;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.75rem;width:100%;min-height:4.75rem;margin:0;padding:1rem 1.25rem;border-radius:var(--button-radius,var(--radius,var(--_r)));border:1px solid oklch(from var(--ink) l c h / 0.65);color:var(--button-ink,var(--cta-ink));background:linear-gradient(180deg in oklch,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));box-shadow:var(--button-shadow,inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24),0 4px 10px -3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);font-size:clamp(1.1875rem,.9rem + 1.6cqi,1.75rem);line-height:1.15;letter-spacing:-.01em;text-decoration:none;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));cursor:pointer;transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease,filter .16s ease;border-color:var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h));text-transform:var(--button-case,none)}
:where(.cf-accept-decline) .cfad-card[data-variant="mono"] .cfad-yes{color:var(--button-ink,var(--band-ink));border-color:var(--button-bg-2,var(--button-bg,var(--band)));background:linear-gradient(180deg in oklch,var(--button-bg,var(--band)),var(--button-bg-2,var(--button-bg,var(--band))));box-shadow:var(--button-shadow,inset 0 -3px 0 oklch(from var(--button-bg,var(--band)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24),0 4px 10px -3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22))}
:where(.cf-accept-decline) .cfad-yes:not(:disabled):not([aria-busy="true"]):hover,:where(.cf-accept-decline) .cfad-yes[data-force="hover"]{transform:translateY(-2px);filter:none;background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h);box-shadow:var(--button-shadow,inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.24),0 4px 10px -3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22))}
:where(.cf-accept-decline) .cfad-yes:not(:disabled):not([aria-busy="true"]):active,:where(.cf-accept-decline) .cfad-yes[data-force="active"]{transform:translateY(2px);filter:none;background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h);box-shadow:var(--button-shadow,inset 0 -1px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2))}
:where(.cf-accept-decline) .cfad-yes:focus-visible{outline:3px solid var(--_accent);outline-offset:4px}
:where(.cf-accept-decline) .cfad-yes:disabled{cursor:not-allowed;transform:none;filter:none;color:var(--muted);text-shadow:none;background:var(--card);border-color:oklch(from var(--_muted) l c h / 0.3);box-shadow:var(--button-shadow,none)}
:where(.cf-accept-decline) .cfad-yes[aria-busy="true"]{cursor:progress}
:where(.cf-accept-decline) .cfad-label{text-align:center;text-wrap:balance}
:where(.cf-accept-decline) .cfad-arrow{flex:none;display:grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:999px;background:transparent;box-shadow:none;transition:transform .16s cubic-bezier(.2,.8,.2,1);visibility:hidden}
:where(.cf-accept-decline) .cfad-yes:disabled .cfad-arrow{background:oklch(from var(--_muted) l c h / 0.14);box-shadow:none}
:where(.cf-accept-decline) .cfad-yes:not(:disabled):hover .cfad-arrow,:where(.cf-accept-decline) .cfad-yes[data-force="hover"] .cfad-arrow{transform:translateX(3px)}
:where(.cf-accept-decline) .cfad-ghost{visibility:hidden}
:where(.cf-accept-decline) .cfad-spin{animation:cfad-spin .8s linear infinite}
:where(.cf-accept-decline) .cfad-sub{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--_muted);text-align:center;text-wrap:pretty}
:where(.cf-accept-decline) .cfad-sub svg{flex:none;color:var(--success)}
:where(.cf-accept-decline) .cfad-no{-webkit-appearance:none;appearance:none;display:block;max-width:34rem;min-height:2.75rem;margin:.375rem auto 0;padding:.5rem .875rem;border:0;border-radius:var(--button-radius,var(--radius,10px));background:var(--button-2-bg,var(--card));font-family:var(--button-font,var(--font-body));font-weight:var(--button-weight,600);font-size:1rem;line-height:1.5;color:var(--button-2-ink,var(--ink));text-align:center;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:5px;text-decoration-color:currentColor;text-wrap:pretty;cursor:pointer;transition:color .15s ease,text-decoration-color .15s ease,background-color .15s ease;text-transform:var(--button-case,none)}
:where(.cf-accept-decline) .cfad-no:hover{color:var(--button-2-ink,var(--ink));text-decoration-color:currentColor;background:var(--button-2-bg,var(--card))}
:where(.cf-accept-decline) .cfad-no:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}
:where(.cf-accept-decline) .cfad-alert{display:flex;align-items:flex-start;gap:.625rem;margin:0;padding:.75rem 1rem;border-radius:var(--card-radius,var(--radius,calc(var(--_r) - 4px)));background:var(--danger-soft);border:1px solid var(--danger);color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.45;text-wrap:pretty;border-color:var(--danger);box-shadow:var(--card-shadow,var(--shadow-md, 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22), 0 4px 10px -2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2)))}
:where(.cf-accept-decline) .cfad-alert svg{flex:none;margin-top:.05em}
:where(.cf-accept-decline) .cfad-secure{display:block;margin:-.75rem 0 0;font-size:.875rem;font-weight:600;line-height:1.4;color:var(--_muted);text-align:center;text-wrap:pretty}
:where(.cf-accept-decline) .cfad-secure svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
@container (max-width: 479px){:where(.cf-accept-decline) .cfad-ghost{display:none}:where(.cf-accept-decline) .cfad-yes{min-height:4.25rem;padding:.875rem 1rem;gap:.625rem}:where(.cf-accept-decline) .cfad-arrow{width:2rem;height:2rem}:where(.cf-accept-decline) .cfad-was{font-size:1.25rem}}
@keyframes cfad-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){:where(.cf-accept-decline) .cfad-yes,:where(.cf-accept-decline) .cfad-arrow,:where(.cf-accept-decline) .cfad-no{transition:none}:where(.cf-accept-decline) .cfad-yes:not(:disabled):hover,:where(.cf-accept-decline) .cfad-yes:not(:disabled):active,:where(.cf-accept-decline) .cfad-yes[data-force],:where(.cf-accept-decline) .cfad-yes:not(:disabled):hover .cfad-arrow,:where(.cf-accept-decline) .cfad-yes[data-force="hover"] .cfad-arrow{transform:none}:where(.cf-accept-decline) .cfad-spin{animation-duration:2.4s}}
:where(.cf-accept-decline) .cfad-yes[aria-busy="true"] .cfad-arrow:not(.cfad-ghost){visibility:visible}
`
export default AcceptDecline
const ACCEPT_COPY = {
savingsTemplate: "Save {amount}",
pendingLabel: "Adding to your order",
regularPriceLabel: "Regular price ",
todayLabel: "Today ",
}
type AcceptDeclineCopy = typeof ACCEPT_COPY
pieces/checkout/accept-decline/specimen.tsx 36 lines
"use client"
import * as React from "react"
import { AcceptDecline, type AcceptDeclineStatus } from "../accept-decline"
import defaults from "../../studio-defaults.json"
export const states = ["default", "hover", "active", "disabled", "error"]
export default function AcceptDeclineSpecimen({ state = "default" }: { state?: string }) {
const sample = defaults.sample
const status: AcceptDeclineStatus = state === "error" ? "error" : "idle"
return (
<div data-state={state}>
<AcceptDecline
recap={
<>
Add <mark>{sample.name}</mark> to your order
</>
}
compareAt={sample.regularPrice}
price={sample.price}
priceLabel={sample.note}
acceptLabel={`Yes! Add It For ${sample.price}`}
acceptSublabel="One click. Same card. No new form."
declineLabel="No thanks, I'll pass on the guide, workbook and launch checklist and plan my funnel on my own."
onDecline={() => {}}
secureLabel={`Secure checkout · ${sample.guarantee}`}
status={status}
disabled={state === "disabled"}
previewState={state === "hover" || state === "active" ? state : undefined}
/>
</div>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalAcceptDecline |
Partial<AcceptDeclineCopy> |
|
href OptionalAcceptDecline |
string |
|
onAction OptionalAcceptDecline |
() => void |
|
state OptionalAcceptDecline |
"default" | "hover" | "active" | "disabled" | "error" | "success" |
|
recap OptionalAcceptDecline |
React.ReactNode |
|
compareAt OptionalAcceptDecline |
string |
|
price OptionalAcceptDecline |
string |
|
priceLabel OptionalAcceptDecline |
string |
|
priceTodayLabel OptionalAcceptDecline |
string |
|
saveLabel OptionalAcceptDecline |
string | false |
|
acceptLabel RequiredAcceptDecline |
string |
|
acceptSublabel OptionalAcceptDecline |
string |
Default "One click. Same card. No new form."
|
acceptHref OptionalAcceptDecline |
string |
|
onAccept OptionalAcceptDecline |
() => void |
|
declineLabel RequiredAcceptDecline |
React.ReactNode |
|
declineHref OptionalAcceptDecline |
string |
|
onDecline OptionalAcceptDecline |
() => void |
|
secureLabel OptionalAcceptDecline |
string |
|
variant OptionalAcceptDecline |
AcceptDeclineVariant |
Default "cta"
|
status OptionalAcceptDecline |
AcceptDeclineStatus |
Default "idle"
|
pending OptionalAcceptDecline |
boolean |
Default false
|
disabled OptionalAcceptDecline |
boolean |
Default false
|
errorMessage OptionalAcceptDecline |
React.ReactNode |
Default "We couldn't add this to your order. Please try again."
|
successTitle OptionalAcceptDecline |
React.ReactNode |
|
successMessage OptionalAcceptDecline |
React.ReactNode |
|
previewState OptionalAcceptDecline |
"hover" | "active" |
|
band OptionalAcceptDecline |
boolean |
Default false
|
className OptionalAcceptDecline |
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-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.
--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