Order Form 2
Receipt checkout: a live receipt where the order bump slides in and the total rolls to the new price, beside a three-stop path that ends on the buy button.
Use it in a prompt
Use checkout/order-form-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/checkout/order-form-2.tsx. - Import it and pass your copy and images (Props tab):
import { OrderForm2 } from "@/components/funneldna/checkout/order-form-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/order-form-2/component.tsx 848 lines
// layout: path-to-action
// Receipt checkout: a live receipt where the order bump slides in and the total rolls to the new price, beside a three-stop path that ends on the buy button.
"use client"
import * as React from "react"
import { AlertCircle, Check, CreditCard, Loader2, Lock, Scissors } from "lucide-react"
import { useReducedMotion } from "motion/react"
import * as PaymentIcons from "react-svg-credit-card-payment-icons"
export type OrderForm2Field = "name" | "email" | "cardNumber" | "expiry" | "cvc" | "zip"
/** Validated values handed to onSubmit. The card number is digits only. */
export type OrderForm2Values = Record<OrderForm2Field, string> & { bump: boolean; total: string }
export type OrderForm2Item = {
name: string
/** Supplied value shown on the receipt line, e.g. "$49". */
value?: string
/** item-n slot image. */
image?: string
imageAlt?: string
}
export type OrderForm2Bump = {
name: string
/** Supplied add-on price, e.g. "$17". Adds to the total when ticked. */
price: string
headline?: React.ReactNode
body?: React.ReactNode
}
export type OrderForm2Copy = typeof ORDER_FORM_2_COPY
export type OrderForm2Props = {
title?: string
/** A phrase inside `title` swiped with the marker highlight. */
highlight?: string
lead?: string
productName?: string
/** Short line under the total, e.g. "One payment · Lifetime access". */
note?: string
/** product slot: transparent product shot that sits on top of the receipt. */
productImage?: string
productImageAlt?: string
items?: OrderForm2Item[]
/** Today's price. */
price?: string
/** Supplied regular value; the coupon line shows the difference. */
regularPrice?: string
/** Optional order bump. It starts unticked unless defaultBump is set. */
bump?: OrderForm2Bump
/** Risk reversal that leads the final stop; pass it only when a guarantee is supplied. */
guarantee?: { title: string; body?: React.ReactNode }
/** Every other word. Templates replace {total}, {saving}, {value}, {name}, {price} and {digits} as text. */
copy?: Partial<OrderForm2Copy>
/** Replaces the card inputs with your payment provider's element. */
paymentFields?: React.ReactNode
/** A payment error from your processor, shown above the button. */
paymentError?: string
defaultValues?: Partial<Record<OrderForm2Field, string>>
defaultBump?: boolean
onBumpChange?: (checked: boolean) => void
/** Called with validated values. Reject to show the payment error and keep the form. */
onSubmit?: (values: OrderForm2Values) => void | Promise<void>
/** Preview: "disabled" = submitting, "error" = field and payment errors, "success" = every field shown valid. */
state?: "default" | "disabled" | "error" | "success"
className?: string
}
export function OrderForm2({
title = "Get the kit and plan your first funnel tonight",
highlight = "plan your first funnel tonight",
lead = "Plan your funnel, write your page copy, and check every step before you launch.",
productName = "The Funnel Starter Kit",
note = "One payment · Lifetime access",
productImage,
productImageAlt = "",
items = DEFAULT_ITEMS,
price = "$47",
regularPrice = "$97",
bump,
guarantee,
copy: copyOverrides,
paymentFields,
paymentError,
defaultValues,
defaultBump = false,
onBumpChange,
onSubmit,
state = "default",
className,
}: OrderForm2Props) {
const copy: OrderForm2Copy = { ...ORDER_FORM_2_COPY, ...defined(copyOverrides) }
const uid = React.useId()
const reduce = useReducedMotion() ?? false
const previewTouched = state === "error" || state === "success"
const [values, setValues] = React.useState<Record<OrderForm2Field, string>>(() => ({ ...EMPTY_VALUES, ...defaultValues }))
const [touched, setTouched] = React.useState<Record<OrderForm2Field, boolean>>(() => touchAll(previewTouched))
const [bumpOn, setBumpOn] = React.useState(defaultBump)
const [submitting, setSubmitting] = React.useState(false)
const [payFailed, setPayFailed] = React.useState(state === "error")
const alive = React.useRef(true)
const inputs = React.useRef<Partial<Record<OrderForm2Field, HTMLInputElement | null>>>({})
const busy = submitting || state === "disabled"
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
const digits = values.cardNumber.replace(/\D/g, "")
const brand = brandOf(digits)
const fields: OrderForm2Field[] = paymentFields ? CONTACT_FIELDS : ALL_FIELDS
const errors: Partial<Record<OrderForm2Field, string>> = {}
for (const f of fields) {
const message = validate(f, values[f], brand, copy)
if (message) errors[f] = message
}
const shownError = (f: OrderForm2Field) => (touched[f] ? errors[f] : undefined)
const isValid = (f: OrderForm2Field) => touched[f] && !errors[f]
const contactDone = CONTACT_FIELDS.every((f) => !errors[f])
const paymentDone = !paymentFields && CARD_FIELDS.every((f) => !errors[f])
const base = parseMoney(price)
const addOn = bump ? parseMoney(bump.price) : null
const regular = parseMoney(regularPrice)
const decimals = Math.max(base?.decimals ?? 0, addOn?.decimals ?? 0)
const money = (n: number) => (base ? formatMoney(n, base, decimals) : String(n))
const totalNumber = (base?.value ?? 0) + (bumpOn && addOn ? addOn.value : 0)
const totalText = base ? money(totalNumber) : price
const rolled = useRoll(totalNumber, reduce)
const rolledText = base ? money(decimals ? rolled : Math.round(rolled)) : price
const saving = base && regular && regular.value > base.value ? regular.value - base.value : 0
const thumbs = items.some((item) => item.image)
const failure = paymentError ?? (payFailed ? copy.paymentError : undefined)
const marks = BRAND_ORDER.filter((b) => BRANDS[b])
function change(f: OrderForm2Field, raw: string) {
let next = raw
if (f === "cardNumber") {
const d = raw.replace(/\D/g, "")
const b = brandOf(d)
next = formatCard(d.slice(0, b === "amex" ? 15 : 16), b)
} else if (f === "expiry") {
const d = raw.replace(/\D/g, "").slice(0, 4)
next = d.length > 2 ? `${d.slice(0, 2)} / ${d.slice(2)}` : d
} else if (f === "cvc") {
next = raw.replace(/\D/g, "").slice(0, 4)
} else if (f === "zip") {
next = raw.slice(0, 10)
}
setValues((v) => ({ ...v, [f]: next }))
if (payFailed && CARD_FIELDS.includes(f)) setPayFailed(false)
}
function toggleBump(checked: boolean) {
setBumpOn(checked)
onBumpChange?.(checked)
}
async function submit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault()
if (busy) return
setTouched(touchAll(true))
const firstInvalid = fields.find((f) => errors[f])
if (firstInvalid) {
inputs.current[firstInvalid]?.focus()
return
}
setPayFailed(false)
setSubmitting(true)
try {
await onSubmit?.({ ...values, cardNumber: digits, bump: bumpOn, total: totalText })
} catch {
if (alive.current) setPayFailed(true)
} finally {
if (alive.current) setSubmitting(false)
}
}
const field = (
f: OrderForm2Field,
label: string,
placeholder: string,
extra: React.InputHTMLAttributes<HTMLInputElement>,
adorn?: React.ReactNode,
) => (
<Field
key={f}
id={`${uid}-${f}`}
label={label}
error={shownError(f)}
valid={Boolean(isValid(f))}
adorn={adorn}
inputRef={(el) => {
inputs.current[f] = el
}}
name={f}
value={values[f]}
placeholder={placeholder}
onChange={(e) => change(f, e.target.value)}
onBlur={() => setTouched((t) => ({ ...t, [f]: true }))}
{...extra}
/>
)
const BrandMark = brand ? BRANDS[brand] : null
const cardAdorn =
brand && BrandMark ? (
<span className="of2-brand" key={brand} data-official-mark={copy.cardBrands[brand]}>
<BrandMark width={40} height={26} />
</span>
) : (
<CreditCard size={20} strokeWidth={2.5} />
)
return (
<section className={cx("cf-order-form-2", className)} aria-labelledby={`${uid}-title`}>
<style>{CSS}</style>
<div className="of2-wrap">
<header className="of2-head of2-rise">
<h2 className="of2-title" id={`${uid}-title`}>
{renderTitle(title, highlight)}
</h2>
{lead && <p className="of2-lead">{lead}</p>}
</header>
<div className="of2-grid">
<div className="of2-stage of2-rise" style={{ animationDelay: ".07s" }}>
{productImage && (
<img className="of2-product" src={productImage} alt={productImageAlt} width={480} height={384} />
)}
<div className={cx("of2-receipt", productImage && "has-product")}>
<h3 className="of2-rc-title">{productName}</h3>
<ul className="of2-lines">
{items.map((item, i) => (
<li className="of2-line" key={`${item.name}-${i}`}>
{item.image && (
<img className="of2-thumb" src={item.image} alt={item.imageAlt ?? ""} width={44} height={44} loading="lazy" />
)}
<span className="of2-line-text">
<span className="of2-line-name">{item.name}</span>
{item.value && (
<>
<span className="of2-leader" aria-hidden="true" />
<span className="of2-line-value">{item.value}</span>
</>
)}
</span>
</li>
))}
</ul>
{saving > 0 && (
<div className="of2-coupon">
<Scissors className="of2-coupon-icon" size={20} strokeWidth={2.5} aria-hidden="true" />
<span className="of2-coupon-text">
<strong>{copy.couponTitle}</strong>
<span>{fill(copy.couponNote, { saving: money(saving), value: regularPrice })}</span>
</span>
<span className="of2-coupon-amt">−{money(saving)}</span>
</div>
)}
{bump && (
<div className={cx("of2-bumpline", bumpOn && "is-on")} aria-hidden={bumpOn ? undefined : true}>
<div>
<div className={cx("of2-line", thumbs && "is-indented")}>
<span className="of2-line-text">
<span className="of2-line-name">
{bump.name}
<span className="of2-chip">{copy.bumpAdded}</span>
</span>
<span className="of2-leader" aria-hidden="true" />
<span className="of2-line-value">+{bump.price}</span>
</span>
</div>
</div>
</div>
)}
<div className="of2-total">
<p className="of2-total-label">
<span>{copy.totalLabel}</span>
{note && <span className="of2-total-note">{note}</span>}
</p>
<p className="of2-total-num" aria-hidden="true">
{rolledText}
</p>
<span className="of2-sr" aria-live="polite">
{fill(copy.totalAnnounce, { total: totalText })}
</span>
</div>
</div>
{bump && (
<div className={cx("of2-bump", bumpOn && "is-on", busy && "is-busy")}>
<label className="of2-bump-strip" htmlFor={`${uid}-bump`}>
<span className="of2-check">
<input
id={`${uid}-bump`}
type="checkbox"
checked={bumpOn}
disabled={busy}
onChange={(e) => toggleBump(e.target.checked)}
/>
<Check className="of2-check-glyph" size={18} strokeWidth={3} aria-hidden="true" />
</span>
<span>{fill(copy.bumpCheck, { name: bump.name, price: bump.price })}</span>
</label>
{(bump.headline || bump.body) && (
<div className="of2-bump-body">
{bump.headline && <p className="of2-bump-head">{bump.headline}</p>}
{bump.body && <p>{bump.body}</p>}
</div>
)}
</div>
)}
</div>
<form className="of2-form of2-rise" style={{ animationDelay: ".14s" }} noValidate onSubmit={submit} aria-busy={busy || undefined}>
<fieldset className="of2-fieldset" disabled={busy}>
<ol className="of2-path">
<li className={cx("of2-stop", contactDone && "is-done")}>
<StopMark n={1} done={contactDone} />
<div className="of2-stop-body">
<h3 className="of2-stop-title">{copy.contactTitle}</h3>
<div className="of2-row of2-row-2">
{field("name", copy.nameLabel, copy.namePlaceholder, { autoComplete: "name" })}
{field("email", copy.emailLabel, copy.emailPlaceholder, { type: "email", autoComplete: "email", inputMode: "email" })}
</div>
</div>
</li>
<li className={cx("of2-stop", paymentDone && "is-done")}>
<StopMark n={2} done={paymentDone} />
<div className="of2-stop-body">
<h3 className="of2-stop-title">{copy.paymentTitle}</h3>
{paymentFields ?? (
<>
<div className="of2-row">
{field(
"cardNumber",
copy.cardLabel,
copy.cardPlaceholder,
{ autoComplete: "cc-number", inputMode: "numeric" },
cardAdorn,
)}
</div>
<div className="of2-row of2-row-3">
{field("expiry", copy.expiryLabel, copy.expiryPlaceholder, { autoComplete: "cc-exp", inputMode: "numeric" })}
{field("cvc", copy.cvcLabel, copy.cvcPlaceholder, { autoComplete: "cc-csc", inputMode: "numeric" })}
{field("zip", copy.zipLabel, copy.zipPlaceholder, { autoComplete: "postal-code" })}
</div>
</>
)}
</div>
</li>
<li className="of2-stop">
<StopMark n={3} done={false} />
<div className="of2-stop-body">
<h3 className="of2-stop-title">{guarantee?.title ?? copy.confirmTitle}</h3>
{guarantee?.body && <p className="of2-stop-text">{guarantee.body}</p>}
{failure && (
<div className="of2-alert" role="alert">
<AlertCircle size={18} strokeWidth={2.5} aria-hidden="true" />
{failure}
</div>
)}
<button type="submit" className={cx("of2-cta", busy && "is-busy")} aria-busy={busy || undefined}>
{busy ? (
<>
<Loader2 className="of2-spin" size={20} strokeWidth={2.5} aria-hidden="true" />
{copy.busy}
</>
) : (
fill(copy.cta, { total: totalText })
)}
</button>
<p className="of2-secure">
<Lock size={16} strokeWidth={2.5} aria-hidden="true" />
{fill(copy.secure, { total: totalText })}
</p>
{marks.length > 0 && (
<ul className="of2-pay" aria-label={copy.cardsLabel}>
{marks.map((b) => {
const Mark = BRANDS[b]
if (!Mark) return null
return (
<li key={b}>
<span className="of2-pay-mark" role="img" aria-label={copy.cardBrands[b]} data-official-mark={copy.cardBrands[b]}>
<Mark width={44} height={28} />
</span>
</li>
)
})}
</ul>
)}
</div>
</li>
</ol>
</fieldset>
</form>
</div>
</div>
</section>
)
}
export default OrderForm2
type FieldProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "id"> & {
id: string
label: string
error?: string
valid: boolean
adorn?: React.ReactNode
inputRef: (el: HTMLInputElement | null) => void
}
// private
function Field({ id, label, error, valid, adorn, inputRef, ...input }: FieldProps) {
const messageId = `${id}-msg`
return (
<div className="of2-field">
<label className="of2-label" htmlFor={id}>
{label}
{valid && (
<span className="of2-ok" aria-hidden="true">
<Check size={14} strokeWidth={3} />
</span>
)}
</label>
<div className="of2-control">
<input
{...input}
id={id}
ref={inputRef}
className={cx("of2-input", error && "is-invalid", valid && "is-valid", adorn ? "has-adorn" : undefined)}
aria-invalid={error ? true : undefined}
aria-describedby={error ? messageId : undefined}
/>
{adorn && (
<span className="of2-adorn" aria-hidden="true">
{adorn}
</span>
)}
</div>
{error && (
<p className="of2-msg" id={messageId}>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden="true" />
{error}
</p>
)}
</div>
)
}
// private
function StopMark({ n, done }: { n: number; done: boolean }) {
return (
<span className="of2-num" aria-hidden="true">
{done ? (
<span className="of2-done">
<Check size={18} strokeWidth={3} />
</span>
) : (
n
)}
</span>
)
}
function useRoll(target: number, reduce: boolean) {
const [shown, setShown] = React.useState(target)
const current = React.useRef(target)
React.useEffect(() => {
if (reduce || current.current === target || typeof requestAnimationFrame === "undefined") {
current.current = target
setShown(target)
return
}
const from = current.current
const start = performance.now()
let raf = 0
const tick = (now: number) => {
const p = Math.min(1, (now - start) / 560)
const v = from + (target - from) * (1 - Math.pow(1 - p, 3))
current.current = p === 1 ? target : v
setShown(current.current)
if (p < 1) raf = requestAnimationFrame(tick)
}
raf = requestAnimationFrame(tick)
return () => {
cancelAnimationFrame(raf)
current.current = target
}
}, [target, reduce])
return shown
}
function renderTitle(title: string, highlight?: string) {
if (!highlight) return title
const at = title.indexOf(highlight)
if (at < 0) return title
return (
<>
{title.slice(0, at)}
<span className="of2-marker">{highlight}</span>
{title.slice(at + highlight.length)}
</>
)
}
type Brand = "visa" | "mastercard" | "amex" | "discover"
type BrandIcon = React.ComponentType<{ width?: number; height?: number }>
type GenericIconProps = { type: string; format?: string; width?: number; height?: number }
// Official card-network marks keep their own colours (theme-contract §3 exception).
// Resolved defensively so a missing export never breaks the checkout: named marks first, then the generic PaymentIcon.
const ICON_NS = PaymentIcons as unknown as Record<string, unknown>
const ICON_DEFAULT = ICON_NS.default
const ICONS: Record<string, unknown> =
ICON_DEFAULT && typeof ICON_DEFAULT === "object" ? { ...(ICON_DEFAULT as Record<string, unknown>), ...ICON_NS } : ICON_NS
function resolveMark(names: string[], type: string): BrandIcon | null {
for (const name of names) {
const C = ICONS[name]
if (C && (typeof C === "function" || typeof C === "object")) return C as BrandIcon
}
const Generic = ICONS.PaymentIcon as React.ComponentType<GenericIconProps> | undefined
if (Generic && (typeof Generic === "function" || typeof Generic === "object")) {
const Fallback: BrandIcon = ({ width, height }) => <Generic type={type} format="flatRounded" width={width} height={height} />
return Fallback
}
return null
}
const BRANDS: Record<Brand, BrandIcon | null> = {
visa: resolveMark(["Visa"], "Visa"),
mastercard: resolveMark(["Mastercard", "MasterCard"], "Mastercard"),
amex: resolveMark(["AmericanExpress", "Amex"], "Amex"),
discover: resolveMark(["Discover"], "Discover"),
}
const BRAND_ORDER: Brand[] = ["visa", "mastercard", "amex", "discover"]
function brandOf(d: string): Brand | null {
if (/^3[47]/.test(d)) return "amex"
if (/^4/.test(d)) return "visa"
if (/^(5[1-5]|2[2-7])/.test(d)) return "mastercard"
if (/^(6011|65|64[4-9])/.test(d)) return "discover"
return null
}
function formatCard(d: string, brand: Brand | null) {
if (brand === "amex") return [d.slice(0, 4), d.slice(4, 10), d.slice(10, 15)].filter(Boolean).join(" ")
return d.replace(/(\d{4})(?=\d)/g, "$1 ")
}
function luhn(d: string) {
let sum = 0
for (let i = 0; i < d.length; i++) {
let n = Number(d[d.length - 1 - i])
if (i % 2 === 1) {
n *= 2
if (n > 9) n -= 9
}
sum += n
}
return sum % 10 === 0
}
function validate(f: OrderForm2Field, value: string, brand: Brand | null, copy: OrderForm2Copy): string {
const t = value.trim()
switch (f) {
case "name":
return t.length >= 2 ? "" : copy.nameError
case "email":
return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t) ? "" : copy.emailError
case "cardNumber": {
const d = t.replace(/\D/g, "")
return d.length === (brand === "amex" ? 15 : 16) && luhn(d) ? "" : copy.cardError
}
case "expiry": {
const d = t.replace(/\D/g, "")
if (d.length !== 4) return copy.expiryError
const month = Number(d.slice(0, 2))
const year = 2000 + Number(d.slice(2))
if (month < 1 || month > 12) return copy.expiryError
return new Date(year, month, 1) > new Date() ? "" : copy.expiryError
}
case "cvc": {
const n = brand === "amex" ? 4 : 3
return t.length === n && /^\d+$/.test(t) ? "" : fill(copy.cvcError, { digits: String(n) })
}
case "zip":
return /^[A-Za-z0-9][A-Za-z0-9 -]{2,9}$/.test(t) ? "" : copy.zipError
}
return ""
}
type Money = { value: number; prefix: string; suffix: string; decimals: number }
function parseMoney(text?: string): Money | null {
if (!text) return null
const match = /(\d[\d,]*)(\.\d+)?/.exec(text)
if (!match) return null
return {
value: Number((match[1] + (match[2] ?? "")).replace(/,/g, "")),
prefix: text.slice(0, match.index),
suffix: text.slice(match.index + match[0].length),
decimals: match[2] ? match[2].length - 1 : 0,
}
}
function formatMoney(n: number, ref: Money, decimals: number) {
return ref.prefix + n.toLocaleString("en-US", { minimumFractionDigits: decimals, maximumFractionDigits: decimals }) + ref.suffix
}
function fill(template: string, map: Record<string, string>) {
return template.replace(/\{(\w+)\}/g, (all, key: string) => map[key] ?? all)
}
function defined<T extends object>(value?: Partial<T>): Partial<T> {
if (!value) return {}
return Object.fromEntries(Object.entries(value).filter(([, v]) => v !== undefined)) as Partial<T>
}
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(" ")
}
const CONTACT_FIELDS: OrderForm2Field[] = ["name", "email"]
const CARD_FIELDS: OrderForm2Field[] = ["cardNumber", "expiry", "cvc", "zip"]
const ALL_FIELDS: OrderForm2Field[] = [...CONTACT_FIELDS, ...CARD_FIELDS]
const EMPTY_VALUES: Record<OrderForm2Field, string> = { name: "", email: "", cardNumber: "", expiry: "", cvc: "", zip: "" }
function touchAll(on: boolean): Record<OrderForm2Field, boolean> {
return { name: on, email: on, cardNumber: on, expiry: on, cvc: on, zip: on }
}
const DEFAULT_ITEMS: OrderForm2Item[] = [
{ name: "Funnel Planning Guide", value: "$49" },
{ name: "Page Copy Workbook", value: "$29" },
{ name: "Launch Checklist", value: "$19" },
]
const ORDER_FORM_2_COPY = {
contactTitle: "Where should we send your kit?",
paymentTitle: "Pay securely by card",
confirmTitle: "Review your total and complete your order",
nameLabel: "Full name",
namePlaceholder: "Jane Smith",
emailLabel: "Email address",
emailPlaceholder: "you@example.com",
cardLabel: "Card number",
cardPlaceholder: "1234 1234 1234 1234",
expiryLabel: "Expiry",
expiryPlaceholder: "MM / YY",
cvcLabel: "CVC",
cvcPlaceholder: "123",
zipLabel: "ZIP code",
zipPlaceholder: "90210",
nameError: "Enter your full name.",
emailError: "Enter a valid email, like you@example.com.",
cardError: "Check your card number.",
expiryError: "Enter a future date as MM / YY.",
cvcError: "Enter the {digits}-digit code.",
zipError: "Enter your billing ZIP code.",
cta: "Complete my order — {total}",
busy: "Processing your order…",
secure: "Secure checkout · {total} charged today",
paymentError: "We couldn't take this payment. Check your card details or try another card.",
cardsLabel: "Accepted cards",
cardBrands: { visa: "Visa", mastercard: "Mastercard", amex: "American Express", discover: "Discover" } as Record<Brand, string>,
totalLabel: "Your total today",
totalAnnounce: "Your total today is {total}",
couponTitle: "Kit bundle price",
couponNote: "{saving} off the {value} value",
bumpCheck: "Yes! Add the {name} to my order for {price}",
bumpAdded: "Added",
}
// Status badge glyphs are white on the solid --success fill (theme-contract §1 "Status icon badges"); #fff is only the var() fallback.
// The headline marker reads --marker directly (role token); #fae37c is the documented yellow marker default.
const CSS = `
.cf-order-form-2{
--of2-shadow:var(--shadow,oklch(0.22 0.03 256));
--of2-cta:var(--button-bg,var(--cta,#d92d20));
--of2-cta-2:var(--button-bg-2,var(--cta-2,#b42318));
--of2-radius:var(--card-radius,var(--radius,14px));
--of2-focus:var(--field-focus,var(--accent,#1d5bd8));
--of2-ease:cubic-bezier(.2,.7,.2,1);
--of2-gutter:clamp(16px,5vw,48px);
--of2-cta-shadow:inset 0 1px 0 oklch(from var(--of2-cta) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--of2-cta) calc(l - .16) c h),0 1px 2px oklch(from var(--of2-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--of2-shadow) l c h / .45);
position:relative;
background:var(--surface,#ffffff);
color:var(--ink,#101828);
font-family:var(--font-body,Arial,sans-serif);
font-size:clamp(1.0625rem,1.25vw,1.125rem);
line-height:1.5;
padding:clamp(56px,8vw,112px) var(--of2-gutter) clamp(64px,8.5vw,120px);
}
.cf-order-form-2 *,.cf-order-form-2 *::before,.cf-order-form-2 *::after{box-sizing:border-box}
.cf-order-form-2 .of2-wrap{max-width:1120px;margin:0 auto}
.cf-order-form-2 .of2-head{max-width:46rem;margin:0 0 clamp(32px,4vw,48px)}
.cf-order-form-2 .of2-title{margin:0 0 16px;font-family:var(--font-display,Arial,sans-serif);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(--ink,#101828)}
.cf-order-form-2 .of2-marker{background-image:linear-gradient(transparent 56%,color-mix(in oklch,var(--marker,#fae37c) 88%,transparent) 56%,color-mix(in oklch,var(--marker,#fae37c) 88%,transparent) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .1em;margin:0 -.04em;border-radius:.1em .3em .15em .25em}
.cf-order-form-2 .of2-lead{margin:0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted,#475467);text-wrap:pretty}
.cf-order-form-2 .of2-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:clamp(32px,5vw,72px);align-items:start}
.cf-order-form-2 .of2-stage{background:var(--band,#1b2a4a);border-radius:var(--of2-radius);padding:clamp(20px,3vw,32px)}
.cf-order-form-2 .of2-product{position:relative;z-index:2;display:block;width:100%;max-width:400px;height:auto;aspect-ratio:5/4;object-fit:contain;object-position:center bottom;margin:-4px auto -36px;filter:drop-shadow(0 2px 3px oklch(from var(--of2-shadow) l c h / .45)) drop-shadow(0 14px 14px oklch(from var(--of2-shadow) l c h / .32))}
.cf-order-form-2 .of2-receipt{position:relative;z-index:1;background:var(--card,#ffffff);color:var(--ink,#101828);border:1px solid var(--card-border,oklch(from var(--ink,#101828) l c h / .12));border-radius:var(--of2-radius);box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(0.22 0.03 256 / .22),0 4px 10px -2px oklch(0.22 0.03 256 / .2)));padding:clamp(20px,3vw,32px)}
.cf-order-form-2 .of2-receipt.has-product{padding-top:52px}
.cf-order-form-2 .of2-rc-title{margin:0 0 20px;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance}
.cf-order-form-2 .of2-lines{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.cf-order-form-2 .of2-line{display:flex;align-items:center;gap:12px}
.cf-order-form-2 .of2-line.is-indented{padding-left:56px}
.cf-order-form-2 .of2-thumb{flex:none;width:44px;height:44px;border-radius:8px;object-fit:cover;object-position:center}
.cf-order-form-2 .of2-line-text{flex:1;min-width:0;display:flex;align-items:flex-end;gap:8px}
.cf-order-form-2 .of2-line-name{min-width:0;font-weight:600;line-height:1.35;text-wrap:pretty}
.cf-order-form-2 .of2-leader{flex:1 1 20px;min-width:20px;height:4px;margin-bottom:.42em;background:radial-gradient(circle,oklch(from var(--ink,#101828) l c h / .4) 1.1px,transparent 1.5px) 0 50% / 7px 4px repeat-x}
.cf-order-form-2 .of2-line-value{flex:none;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.35}
.cf-order-form-2 .of2-coupon{margin-top:18px;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink,#101828) 5%,var(--card,#ffffff))}
.cf-order-form-2 .of2-coupon-icon{flex:none;color:var(--accent,#1d5bd8)}
.cf-order-form-2 .of2-coupon-text{flex:1;min-width:0;display:grid;gap:2px;line-height:1.3}
.cf-order-form-2 .of2-coupon-text strong{font-size:16px;font-weight:700}
.cf-order-form-2 .of2-coupon-text span{font-size:15px;font-weight:500;color:var(--muted,#475467);text-wrap:pretty}
.cf-order-form-2 .of2-coupon-amt{flex:none;font-size:18px;font-weight:800;color:var(--success,#16794c);font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-order-form-2 .of2-bumpline{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .45s var(--of2-ease),opacity .3s ease}
.cf-order-form-2 .of2-bumpline>div{min-height:0;overflow:hidden}
.cf-order-form-2 .of2-bumpline .of2-line{padding-top:14px;transform:translateY(-12px);transition:transform .45s var(--of2-ease)}
.cf-order-form-2 .of2-bumpline.is-on{grid-template-rows:1fr;opacity:1}
.cf-order-form-2 .of2-bumpline.is-on .of2-line{transform:none}
.cf-order-form-2 .of2-chip{display:inline-flex;align-items:center;height:28px;padding:0 12px;margin-inline-start:8px;border-radius:999px;background:var(--success-soft,oklch(0.93 0.02 150));color:var(--success,#16794c);font-size:14px;font-weight:800;line-height:1;vertical-align:.1em;white-space:nowrap}
.cf-order-form-2 .of2-total{margin-top:22px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 16px}
.cf-order-form-2 .of2-total-label{margin:0;display:grid;gap:4px;line-height:1.3}
.cf-order-form-2 .of2-total-label>span:first-child{font-size:16px;font-weight:800}
.cf-order-form-2 .of2-total-note{font-size:15px;font-weight:500;color:var(--muted,#475467)}
.cf-order-form-2 .of2-total-num{margin:0;font-family:var(--font-display,Arial,sans-serif);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(--ink,#101828)}
.cf-order-form-2 .of2-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cf-order-form-2 .of2-bump{margin-top:20px;border-radius:var(--of2-radius);background:var(--bump,#fffbe6);color:var(--bump-ink,#101828);overflow:hidden;box-shadow:var(--shadow-md,0 1px 2px oklch(0.22 0.03 256 / .22),0 4px 10px -2px oklch(0.22 0.03 256 / .2))}
.cf-order-form-2 .of2-bump-strip{display:flex;align-items:center;gap:14px;padding:14px 18px;background:var(--bump-strip,#fde68a);font-size:17px;font-weight:800;line-height:1.3;cursor:pointer;text-wrap:pretty;transition:background .16s ease}
.cf-order-form-2 .of2-bump-strip:hover{background:oklch(from var(--bump-strip,#fde68a) calc(l - .03) c h)}
.cf-order-form-2 .of2-bump.is-busy .of2-bump-strip{cursor:not-allowed}
.cf-order-form-2 .of2-check{position:relative;flex:none;width:28px;height:28px}
.cf-order-form-2 .of2-check input{-webkit-appearance:none;appearance:none;display:block;margin:0;width:28px;height:28px;border-radius:8px;border:2px solid var(--bump-ink,#101828);background:var(--field,#ffffff);cursor:pointer;transition:background .16s ease,border-color .16s ease}
.cf-order-form-2 .of2-check input:checked{background:var(--success,#16794c);border-color:var(--success,#16794c)}
.cf-order-form-2 .of2-check input:focus-visible{outline:3px solid oklch(from var(--of2-focus) l c h / .55);outline-offset:2px}
.cf-order-form-2 .of2-check input:disabled{cursor:not-allowed}
.cf-order-form-2 .of2-check-glyph{position:absolute;left:5px;top:5px;width:18px;height:18px;color:var(--of2-glyph,#fff);opacity:0;transform:scale(.6);transition:opacity .16s ease,transform .16s ease;pointer-events:none}
.cf-order-form-2 .of2-check input:checked+.of2-check-glyph{opacity:1;transform:none}
.cf-order-form-2 .of2-bump-body{padding:14px 18px 18px;font-size:16px;line-height:1.5;text-wrap:pretty}
.cf-order-form-2 .of2-bump-body p{margin:0}
.cf-order-form-2 .of2-bump-body .of2-bump-head{margin-bottom:4px;font-weight:800}
.cf-order-form-2 .of2-form{background:var(--card,#ffffff);color:var(--ink,#101828);border:1px solid var(--card-border,color-mix(in oklch,var(--ink,#101828) 12%,transparent));border-radius:var(--of2-radius);box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 256 / .22),0 12px 24px -8px oklch(0.22 0.03 256 / .32)));padding:clamp(24px,3.2vw,40px) clamp(20px,3.2vw,40px)}
.cf-order-form-2 .of2-fieldset{border:0;margin:0;padding:0;min-width:0}
.cf-order-form-2 .of2-path{list-style:none;margin:0;padding:0}
.cf-order-form-2 .of2-stop{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:16px;padding-bottom:32px}
.cf-order-form-2 .of2-stop:last-child{padding-bottom:0}
.cf-order-form-2 .of2-stop:not(:last-child)::before,.cf-order-form-2 .of2-stop:not(:last-child)::after{content:"";position:absolute;left:19px;top:42px;bottom:8px;width:2px;border-radius:2px}
.cf-order-form-2 .of2-stop:not(:last-child)::before{background:oklch(from var(--ink,#101828) l c h / .12)}
.cf-order-form-2 .of2-stop:not(:last-child)::after{background:var(--accent-fill,var(--accent,#1d5bd8));transform:scaleY(0);transform-origin:top;transition:transform .55s var(--of2-ease)}
.cf-order-form-2 .of2-stop.is-done:not(:last-child)::after{transform:scaleY(1)}
.cf-order-form-2 .of2-num{display:flex;justify-content:center;align-items:flex-start;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--accent,#1d5bd8);font-variant-numeric:tabular-nums}
.cf-order-form-2 .of2-done{display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:var(--success,#16794c);color:var(--of2-glyph,#fff);animation:of2-pop .3s var(--of2-ease) both}
.cf-order-form-2 .of2-stop-body{min-width:0}
.cf-order-form-2 .of2-stop-title{margin:0 0 16px;font-family:var(--font-display,Arial,sans-serif);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance}
.cf-order-form-2 .of2-stop-text{margin:-4px 0 20px;color:var(--muted,#475467);text-wrap:pretty}
.cf-order-form-2 .of2-row{display:grid;gap:16px}
.cf-order-form-2 .of2-row+.of2-row{margin-top:16px}
.cf-order-form-2 .of2-row-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cf-order-form-2 .of2-row-3{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr)}
.cf-order-form-2 .of2-field{min-width:0}
.cf-order-form-2 .of2-label{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:16px;font-weight:700;line-height:1.3;color:var(--label-ink,var(--ink,#101828))}
.cf-order-form-2 .of2-ok{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--success,#16794c);color:var(--of2-glyph,#fff);animation:of2-pop .3s var(--of2-ease) both}
.cf-order-form-2 .of2-control{position:relative}
.cf-order-form-2 .of2-input{display:block;width:100%;height:56px;margin:0;padding:0 16px;font:inherit;font-size:17px;background:var(--field,#ffffff);color:var(--field-ink,#101828);border:1px solid var(--field-border,color-mix(in oklch,var(--ink,#101828) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));box-shadow:inset 0 1px 2px oklch(from var(--of2-shadow) l c h / .08);transition:border-color .16s ease,box-shadow .16s ease;font-variant-numeric:tabular-nums}
.cf-order-form-2 .of2-input.has-adorn{padding-right:64px}
.cf-order-form-2 .of2-input::placeholder{color:color-mix(in oklch,var(--field-ink,#101828) 65%,var(--field,#ffffff));opacity:1}
.cf-order-form-2 .of2-input:hover{border-color:color-mix(in oklch,var(--ink,#101828) 40%,transparent)}
.cf-order-form-2 .of2-input.is-valid{border-color:var(--success,#16794c)}
.cf-order-form-2 .of2-input.is-invalid{border-color:var(--danger,#c0362c)}
.cf-order-form-2 .of2-input:focus{outline:none;border-color:var(--of2-focus);box-shadow:0 0 0 3px oklch(from var(--of2-focus) l c h / .35)}
.cf-order-form-2 .of2-input.is-invalid:focus{border-color:var(--danger,#c0362c);box-shadow:0 0 0 3px oklch(from var(--danger,#c0362c) l c h / .3)}
.cf-order-form-2 .of2-input:disabled{background:color-mix(in oklch,var(--ink,#101828) 4%,var(--field,#ffffff));cursor:not-allowed}
.cf-order-form-2 .of2-adorn{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;pointer-events:none;color:color-mix(in oklch,var(--field-ink,#101828) 55%,var(--field,#ffffff))}
.cf-order-form-2 .of2-brand{display:block;width:40px;height:26px;animation:of2-pop .3s var(--of2-ease) both}
.cf-order-form-2 .of2-brand svg,.cf-order-form-2 .of2-pay-mark svg{display:block;width:100%;height:100%}
.cf-order-form-2 .of2-msg{margin:8px 0 0;font-size:15px;font-weight:600;line-height:1.4;color:var(--danger,#c0362c);text-wrap:pretty}
.cf-order-form-2 .of2-msg svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-order-form-2 .of2-alert{margin:0 0 16px;padding:12px 16px;border-radius:10px;background:var(--danger-soft,oklch(0.93 0.024 27));color:var(--danger,#c0362c);font-size:16px;font-weight:600;line-height:1.45;text-wrap:pretty}
.cf-order-form-2 .of2-alert svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.45em}
.cf-order-form-2 .of2-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:72px;padding:0 28px;margin:0;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display,Arial,sans-serif));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;color:var(--button-ink,var(--cta-ink,#ffffff));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--of2-cta) calc(l + .04) c h),oklch(from var(--of2-cta-2) calc(l - .02) c h));box-shadow:var(--button-shadow,var(--of2-cta-shadow));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-order-form-2 .of2-cta:hover:not(:disabled){transform:translateY(-1px);background:linear-gradient(oklch(from var(--of2-cta) calc(l - .01) c h),oklch(from var(--of2-cta-2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--of2-cta) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--of2-cta) calc(l - .16) c h),0 1px 2px oklch(from var(--of2-shadow) l c h / .32),0 12px 20px -6px oklch(from var(--of2-shadow) l c h / .5))}
.cf-order-form-2 .of2-cta:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--of2-shadow) l c h / .35),inset 0 -2px 0 oklch(from var(--of2-cta) calc(l - .16) c h)}
.cf-order-form-2 .of2-cta:focus-visible{outline:3px solid var(--of2-focus);outline-offset:3px}
.cf-order-form-2 .of2-cta.is-busy{cursor:progress}
.cf-order-form-2 .of2-cta:disabled:not(.is-busy){background:var(--button-2-bg,var(--secondary,#e9edf3));color:var(--button-2-ink,var(--secondary-ink,#101828));box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(0.22 0.03 256 / .18)));text-shadow:none;cursor:not-allowed}
.cf-order-form-2 .of2-spin{flex:none;animation:of2-spin .8s linear infinite}
.cf-order-form-2 .of2-secure{margin:14px 0 0;text-align:center;font-size:15px;font-weight:600;line-height:1.4;color:var(--muted,#475467);text-wrap:pretty}
.cf-order-form-2 .of2-secure svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-order-form-2 .of2-pay{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.cf-order-form-2 .of2-pay-mark{display:block;width:44px;height:28px}
.cf-order-form-2 .of2-rise{animation:of2-rise .45s var(--of2-ease) both}
@keyframes of2-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes of2-pop{from{opacity:.6;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
@keyframes of2-spin{to{transform:rotate(360deg)}}
@media (max-width:900px){
.cf-order-form-2 .of2-wrap{max-width:640px}
.cf-order-form-2 .of2-grid{grid-template-columns:minmax(0,1fr)}
}
@media (min-width:901px) and (min-height:860px){
.cf-order-form-2 .of2-form{position:sticky;top:24px}
}
@media (max-width:560px){
.cf-order-form-2 .of2-stage{padding:16px}
.cf-order-form-2 .of2-product{max-width:280px;margin-bottom:-28px}
.cf-order-form-2 .of2-receipt{padding:20px 18px}
.cf-order-form-2 .of2-receipt.has-product{padding-top:40px}
.cf-order-form-2 .of2-lines{gap:12px}
.cf-order-form-2 .of2-line-name{font-size:16px}
.cf-order-form-2 .of2-leader{flex-basis:12px;min-width:8px}
.cf-order-form-2 .of2-thumb{width:40px;height:40px}
.cf-order-form-2 .of2-form{padding:24px 16px}
.cf-order-form-2 .of2-cta{padding:0 14px}
.cf-order-form-2 .of2-line.is-indented{padding-left:52px}
.cf-order-form-2 .of2-stop{grid-template-columns:minmax(0,1fr)}
.cf-order-form-2 .of2-num,.cf-order-form-2 .of2-stop:not(:last-child)::before,.cf-order-form-2 .of2-stop:not(:last-child)::after{display:none}
.cf-order-form-2 .of2-row-2{grid-template-columns:minmax(0,1fr)}
.cf-order-form-2 .of2-row-3{grid-template-columns:repeat(2,minmax(0,1fr))}
.cf-order-form-2 .of2-row-3 .of2-field:last-child{grid-column:1 / -1}
}
@media (prefers-reduced-motion:reduce){
.cf-order-form-2 *,.cf-order-form-2 *::before,.cf-order-form-2 *::after{animation:none !important;transition:none !important}
}
`
pieces/checkout/order-form-2/specimen.tsx 74 lines
import __studioImage5d208b53 from "../assets/10737d9a284374da.webp";
// Specimen: the receipt checkout with the sample kit, a fictional add-on bump and the 30-day guarantee leading the final stop.
import * as React from "react"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
import { OrderForm2 } from "../order-form-2"
import type { OrderForm2Field, OrderForm2Props } from "../order-form-2"
export const states = ["default", "disabled", "error", "success"]
type State = NonNullable<OrderForm2Props["state"]>
const sample = defaults.sample
const BUMP = {
name: "Launch Day Email Pack",
price: "$17",
headline: "Your launch emails, already written.",
body: "Seven ready-to-edit emails that announce your funnel, remind your list and close the cart. Tick the box and they arrive in the same download.",
}
const VALID: Record<OrderForm2Field, string> = {
name: "Dana Reyes",
email: "dana@example.com",
cardNumber: "4242 4242 4242 4242",
expiry: "08 / 29",
cvc: "314",
zip: "78704",
}
const INVALID: Record<OrderForm2Field, string> = {
...VALID,
email: "dana@example",
expiry: "13 / 24",
}
const PRESETS: Record<State, { values?: Partial<Record<OrderForm2Field, string>>; bump?: boolean }> = {
default: {},
disabled: { values: VALID, bump: true },
error: { values: INVALID },
success: { values: VALID, bump: true },
}
export default function OrderForm2Specimen({ state = "default" }: { state?: string }) {
const current: State = states.indexOf(state) >= 0 ? (state as State) : "default"
const preset = PRESETS[current]
const productShot = __studioImage5d208b53
return (
<OrderForm2
key={current}
state={current}
productName={sample.name}
note={sample.note}
price={sample.price}
regularPrice={sample.regularPrice}
productImage={slot("product", productShot)}
productImageAlt="The Funnel Starter Kit: planning guide, copy workbook and launch checklist"
items={sample.items.map((item, i) => ({
name: item.name,
value: item.value,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
bump={BUMP}
guarantee={{
title: "Try it for 30 days, risk free",
body: "Use the guide, workbook and checklist on your own funnel. If it isn't right for you, ask within 30 days and get a full refund.",
}}
defaultValues={preset.values}
defaultBump={preset.bump}
/>
)
}
| Name | Type | Details |
|---|---|---|
title OptionalOrderForm2 |
string |
Default "Get the kit and plan your first funnel tonight"
|
highlight OptionalOrderForm2 |
string |
Default "plan your first funnel tonight"
|
lead OptionalOrderForm2 |
string |
Default "Plan your funnel, write your page copy, and check every step before you launch."
|
productName OptionalOrderForm2 |
string |
Default "The Funnel Starter Kit"
|
note OptionalOrderForm2 |
string |
Default "One payment · Lifetime access"
|
productImage OptionalOrderForm2 |
string |
|
productImageAlt OptionalOrderForm2 |
string |
Default ""
|
items OptionalOrderForm2 |
OrderForm2Item[] |
Default DEFAULT_ITEMS
|
price OptionalOrderForm2 |
string |
Default "$47"
|
regularPrice OptionalOrderForm2 |
string |
Default "$97"
|
bump OptionalOrderForm2 |
OrderForm2Bump |
|
guarantee OptionalOrderForm2 |
{ title: string; body?: React.ReactNode } |
|
copy OptionalOrderForm2 |
Partial<OrderForm2Copy> |
|
paymentFields OptionalOrderForm2 |
React.ReactNode |
|
paymentError OptionalOrderForm2 |
string |
|
defaultValues OptionalOrderForm2 |
Partial<Record<OrderForm2Field, string>> |
|
defaultBump OptionalOrderForm2 |
boolean |
Default false
|
onBumpChange OptionalOrderForm2 |
(checked: boolean) => void |
|
onSubmit OptionalOrderForm2 |
(values: OrderForm2Values) => void | Promise<void> |
|
state OptionalOrderForm2 |
"default" | "disabled" | "error" | "success" |
Default "default"
|
className OptionalOrderForm2 |
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--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--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.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
-
10737d9a284374da.webp
image/webp · 207 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB