Two Step Order 12
Closes the sale on a bento board: one dominant two-step order tile (contact first, then payment with the add-on and a live total) framed by the promise, a hang-tag price, the guarantee and the kit.
Use it in a prompt
Use checkout/two-step-order-12 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/two-step-order-12.tsx. - Import it and pass your copy and images (Props tab):
import { TwoStepOrder12 } from "@/components/funneldna/checkout/two-step-order-12"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/two-step-order-12/component.tsx 838 lines
// layout: bento-grid
// Closes the sale on a bento board: one dominant two-step order tile (contact first, then payment with the add-on and a live total) framed by the promise, a hang-tag price, the guarantee and the kit.
// Theme notes: official payment-network marks (Visa, Mastercard, American Express, Discover) keep their brand colours under the theme-contract mark exception; the solid success tick reads --status-glyph with a white fallback.
'use client'
import * as React from 'react'
import { AlertCircle, CalendarDays, Check, CreditCard, Loader2, Lock, Mail, MapPin, ShieldCheck, User, UserCheck, type LucideIcon } from 'lucide-react'
import { AmericanExpress, Discover, Mastercard, Visa } from 'react-svg-credit-card-payment-icons/icons/flat-rounded'
export type BentoField = {
/** Key in the submitted values; also picks the field icon and the default placeholder. */
name: string
label: string
type?: string
autoComplete?: string
/** Realistic example answer. A default per field name is used when omitted. */
placeholder?: string
inputMode?: React.HTMLAttributes<HTMLInputElement>['inputMode']
/** Shares a row with the next half field. */
half?: boolean
}
export type BentoItem = { name: string; value?: string; image?: string; imageAlt?: string }
export type BentoBump = {
title: string
price: string
/** {price} is replaced with the add-on price. */
body?: string
/** Line shown in the order summary when the add-on is ticked. */
summaryLabel?: string
}
export type CardMark = 'visa' | 'mastercard' | 'amex' | 'discover'
export type TwoStepOrder12State = 'default' | 'active' | 'disabled' | 'error'
export type TwoStepOrder12Copy = typeof COPY
export type TwoStepOrder12Props = {
/** Promise tile headline. */
headline?: string
/** Phrase inside the headline set in the accent colour. */
highlight?: string
/** One-sentence lines under the headline. */
punchLines?: string[]
/** Single-word line that lands the promise. Empty hides it. */
punchWord?: string
productName?: string
/** Line under the hang tag. */
productNote?: string
/** Today's price: written on the tag and used for the total. */
price?: string
/** Regular price, crossed out on the tag. Supply only a real one. */
regularPrice?: string
/** Kit contents with photos (slots item-1 … item-n). Empty hides the kit tile. */
items?: BentoItem[]
kitHeading?: string
/** Guarantee headline. Null hides the guarantee tile. */
guarantee?: string | null
guaranteeBody?: string
/** Labels of the two step tabs. */
steps?: [string, string]
/** Step 1 contact fields. */
fields?: BentoField[]
/** Adds shippingFields to step 1. */
collectShipping?: boolean
shippingFields?: BentoField[]
/** Step 2 card fields. */
paymentFields?: BentoField[]
step1Heading?: string
step2Heading?: string
nextLabel?: string
nextNote?: string
orderLabel?: string
/** Line under the order button; {total} is replaced with the live total. */
orderNote?: string
backLabel?: string
/** Optional add-on, unchecked by default. Supply it only with a real price. */
bump?: BentoBump | null
acceptedCards?: CardMark[]
/** ISO currency code for the summary and total. */
currency?: string
/** Interface copy. Templates replace {n}, {value}, {title}, {price}, {label}, {count} and {fields} as text. */
copy?: Partial<TwoStepOrder12Copy>
/** active opens step 2 (payment); error shows step 1 with its inline errors. */
state?: TwoStepOrder12State
initialStep?: 1 | 2
defaultValues?: Record<string, string>
disabled?: boolean
/** Called with the validated step 1 values when the buyer moves to payment. */
onContinue?: (values: Readonly<Record<string, string>>) => void
/** Receives validated values and the add-on choice; never sends data or charges money. A returned promise shows the processing label, a rejection shows copy.submitError. */
onSubmit?: (values: Readonly<Record<string, string>>, bumpSelected: boolean) => void | Promise<void>
className?: string
}
export function TwoStepOrder12({
headline = 'Build your first funnel with a clear plan',
highlight = 'a clear plan',
punchLines = DEFAULT_PUNCH,
punchWord = 'Done.',
productName = 'The Funnel Starter Kit',
productNote = 'One payment · Lifetime access',
price = '$47',
regularPrice,
items = [],
kitHeading = 'Three tools. One download.',
guarantee = '30-day money-back guarantee',
guaranteeBody = 'Try the whole kit. Not for you? Get your money back.',
steps = ['Your details', 'Payment'],
fields = CONTACT_FIELDS,
collectShipping = false,
shippingFields = SHIPPING_FIELDS,
paymentFields = PAYMENT_FIELDS,
step1Heading = 'Where should we send your kit?',
step2Heading = 'Complete your order',
nextLabel = 'Go To Step 2: Payment',
nextNote = 'You’ll see your full total before you pay.',
orderLabel = 'Yes! I Want The Funnel Starter Kit',
orderNote = '{total} today · Secure checkout · Instant download',
backLabel = 'Back',
bump = null,
acceptedCards = ALL_CARDS,
currency = 'USD',
copy: copyOverrides,
state,
initialStep = 1,
defaultValues,
disabled: disabledProp = false,
onContinue,
onSubmit,
className = '',
}: TwoStepOrder12Props) {
const copy: TwoStepOrder12Copy = { ...COPY, ...defined<TwoStepOrder12Copy>(copyOverrides) }
const uid = 'tso12' + React.useId().replace(/[^a-zA-Z0-9]/g, '')
const disabled = state === 'disabled' || disabledProp
const step1Fields = React.useMemo(() => [...fields, ...(collectShipping ? shippingFields : [])], [fields, collectShipping, shippingFields])
const [step, setStep] = React.useState<1 | 2>(state === 'active' ? 2 : state === 'error' ? 1 : initialStep)
const [values, setValues] = React.useState<Record<string, string>>(() => ({ ...(defaultValues ?? {}) }))
const [errors, setErrors] = React.useState<Record<string, string>>(() => (state === 'error' ? validate(step1Fields, defaultValues ?? {}, copy) : {}))
const [alertOn, setAlertOn] = React.useState(state === 'error')
const [bumpOn, setBumpOn] = React.useState(false)
const [status, setStatus] = React.useState<'idle' | 'loading'>('idle')
const [failed, setFailed] = React.useState(false)
const run = React.useRef(0)
const frame = React.useRef<number | undefined>(undefined)
const moved = React.useRef(false)
const seen = React.useRef(state)
const formRef = React.useRef<HTMLFormElement>(null)
const headRef = React.useRef<HTMLHeadingElement>(null)
const loading = status === 'loading'
const locked = disabled || loading
React.useEffect(
() => () => {
run.current++
if (frame.current !== undefined) cancelAnimationFrame(frame.current)
},
[]
)
React.useEffect(() => {
if (seen.current === state) return
seen.current = state
run.current++
setStatus('idle')
setFailed(false)
setStep(state === 'active' ? 2 : 1)
setErrors(state === 'error' ? validate(step1Fields, values, copy) : {})
setAlertOn(state === 'error')
}, [state])
React.useEffect(() => {
if (moved.current) headRef.current?.focus()
}, [step])
const base = toNum(price)
const bumpAmt = bump ? toNum(bump.price) : 0
const total = base + (bump && bumpOn ? bumpAmt : 0)
const totalText = money(total, currency)
const errorCount = Object.keys(errors).length
const showAlert = (alertOn && errorCount > 0) || failed
const alertText = failed
? copy.submitError
: fill(copy.alert, { count: String(errorCount), fields: errorCount === 1 ? copy.fieldWord : copy.fieldsWord })
const who = [values.name, values.email].map((v) => (v ?? '').trim()).filter(Boolean).join(' · ')
const hasKit = items.length > 0
const hasGuarantee = Boolean(guarantee)
const lg = ['p p f', hasGuarantee ? 't g f' : 't t f', ...(hasKit ? ['k k f'] : [])]
const sm = ['p p', hasGuarantee ? 't g' : 't t', 'f f', ...(hasKit ? ['k k'] : [])]
const areas = {
'--tso12-lg': lg.map((r) => `'${r}'`).join(' '),
'--tso12-sm': sm.map((r) => `'${r}'`).join(' '),
} as React.CSSProperties
const at = highlight ? headline.indexOf(highlight) : -1
const head =
at < 0 ? (
headline
) : (
<>
{headline.slice(0, at)}
<span className='tso12-hl'>{highlight}</span>
{headline.slice(at + highlight.length)}
</>
)
const focusFirst = (errs: Record<string, string>) => {
const key = Object.keys(errs)[0]
if (!key) return
frame.current = requestAnimationFrame(() => {
const inputs = formRef.current?.querySelectorAll<HTMLInputElement>('input')
Array.from(inputs ?? []).find((input) => input.name === key)?.focus()
})
}
const update = (name: string, raw: string) => {
setValues((prev) => ({ ...prev, [name]: shape(name, raw) }))
setFailed(false)
if (errors[name]) {
setErrors((prev) => {
const next = { ...prev }
delete next[name]
return next
})
}
}
const goNext = () => {
if (locked) return
const errs = validate(step1Fields, values, copy)
setErrors(errs)
setFailed(false)
if (Object.keys(errs).length) {
setAlertOn(true)
focusFirst(errs)
return
}
setAlertOn(false)
moved.current = true
setStep(2)
onContinue?.(Object.freeze(pick(step1Fields, values)))
}
const goBack = () => {
if (locked) return
moved.current = true
setErrors({})
setAlertOn(false)
setFailed(false)
setStep(1)
}
const submit = async (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault()
if (locked) return
if (step === 1) {
goNext()
return
}
const errs = validate(paymentFields, values, copy)
setErrors(errs)
setFailed(false)
if (Object.keys(errs).length) {
setAlertOn(true)
focusFirst(errs)
return
}
setAlertOn(false)
if (!onSubmit) return
const id = ++run.current
const out = Object.freeze({ ...pick(step1Fields, values), ...pick(paymentFields, values) })
try {
const result = onSubmit(out, Boolean(bump && bumpOn))
if (result && typeof (result as Promise<void>).then === 'function') {
setStatus('loading')
await result
}
if (id === run.current) setStatus('idle')
} catch {
if (id === run.current) {
setStatus('idle')
setFailed(true)
}
}
}
const renderFields = (list: BentoField[]) => {
const rows: BentoField[][] = []
for (const f of list) {
const last = rows[rows.length - 1]
if (f.half && last && last.length === 1 && last[0].half) last.push(f)
else rows.push([f])
}
return rows.map((row, i) => (
<div key={i} className={row.length > 1 ? 'tso12-pair' : 'tso12-row'}>
{row.map((f) => {
const id = `${uid}-${f.name}`
const err = errors[f.name]
const Icon: LucideIcon | undefined = ICONS[f.name] ?? (f.type === 'email' ? Mail : undefined)
return (
<div key={f.name} className='tso12-field' data-invalid={err ? 'true' : undefined}>
<label htmlFor={id}>{f.label}</label>
<div className='tso12-control' data-icon={Icon ? 'true' : undefined}>
{Icon ? <Icon className='tso12-ficon' size={18} strokeWidth={2.5} aria-hidden /> : null}
<input
id={id}
name={f.name}
type={f.type ?? 'text'}
autoComplete={f.autoComplete}
inputMode={f.inputMode}
placeholder={f.placeholder ?? placeholderFor(f)}
value={values[f.name] ?? ''}
onChange={(e) => update(f.name, e.target.value)}
disabled={locked}
aria-invalid={err ? true : undefined}
aria-describedby={err ? `${id}-err` : undefined}
/>
</div>
{err ? (
<p id={`${id}-err`} className='tso12-err'>
<AlertCircle className='tso12-inl' size={16} strokeWidth={2.5} aria-hidden />
{err}
</p>
) : null}
</div>
)
})}
</div>
))
}
return (
<div className={`tso12 ${className}`.trim()} style={areas} data-disabled={disabled ? 'true' : undefined}>
<style>{CSS}</style>
<div className='tso12-tile tso12-promise'>
<h2 className='tso12-h2'>{head}</h2>
{punchLines.length || punchWord ? (
<div className='tso12-punch'>
{punchLines.map((line) => (
<p key={line}>{line}</p>
))}
{punchWord ? <p className='tso12-word'>{punchWord}</p> : null}
</div>
) : null}
</div>
<div className='tso12-tile tso12-tagtile'>
<span className='tso12-cord' aria-hidden='true' />
<div className='tso12-tag'>
<div className='tso12-tagbody'>
<span className='tso12-hole' aria-hidden='true' />
{regularPrice ? (
<s className='tso12-was'>
<span className='tso12-sr'>{copy.regularLabel} </span>
{regularPrice}
</s>
) : null}
<p className='tso12-now'>
<span className='tso12-sr'>{copy.todayLabel} </span>
{price}
</p>
</div>
</div>
{productNote ? <p className='tso12-tagnote'>{productNote}</p> : null}
</div>
{hasGuarantee ? (
<div className='tso12-tile tso12-guarantee'>
<span className='tso12-disc' aria-hidden='true'>
<ShieldCheck size={20} strokeWidth={2.5} />
</span>
<p className='tso12-gtitle'>{guarantee}</p>
{guaranteeBody ? <p className='tso12-gbody'>{guaranteeBody}</p> : null}
</div>
) : null}
{hasKit ? (
<div className='tso12-tile tso12-kit'>
<h3 className='tso12-h3'>{kitHeading}</h3>
<ul className='tso12-items' style={{ '--n': Math.min(items.length, 3) } as React.CSSProperties}>
{items.map((it) => (
<li key={it.name}>
{it.image ? <img src={it.image} alt={it.imageAlt ?? it.name} width={240} height={240} loading='lazy' decoding='async' /> : null}
<span className='tso12-iname'>{it.name}</span>
{it.value ? <span className='tso12-ivalue'>{fill(copy.valueLabel, { value: it.value })}</span> : null}
</li>
))}
</ul>
</div>
) : null}
<form ref={formRef} className='tso12-tile tso12-form' noValidate onSubmit={submit} aria-labelledby={`${uid}-step`} aria-busy={loading || undefined}>
<ol className='tso12-tabs' aria-label={copy.stepsLabel}>
{steps.map((label, i) => {
const n = (i + 1) as 1 | 2
const current = step === n
const done = n === 1 && step === 2
return (
<li key={label}>
<button
type='button'
className='tso12-tab'
aria-current={current ? 'step' : undefined}
data-done={done ? 'true' : undefined}
disabled={locked}
onClick={() => {
if (n === 1 && step === 2) goBack()
if (n === 2 && step === 1) goNext()
}}
>
<span className='tso12-num' aria-hidden='true'>
{done ? <Check size={16} strokeWidth={3} /> : n}
</span>
<span className='tso12-tabtext'>
<span className='tso12-tabstep'>{fill(copy.stepWord, { n: String(n) })}</span>
<span className='tso12-tablabel'>
{label}
{done ? <span className='tso12-sr'> ({copy.completed})</span> : null}
</span>
</span>
</button>
</li>
)
})}
</ol>
<div className='tso12-live' aria-live='polite'>
{showAlert ? (
<p className='tso12-alert'>
<AlertCircle className='tso12-inl' size={18} strokeWidth={2.5} aria-hidden />
{alertText}
</p>
) : null}
</div>
{step === 1 ? (
<div className='tso12-pane' key='s1'>
<h3 id={`${uid}-step`} ref={headRef} tabIndex={-1} className='tso12-h3'>
{step1Heading}
</h3>
<div className='tso12-fields'>{renderFields(step1Fields)}</div>
<div className='tso12-actions'>
<button type='submit' className='tso12-btn' disabled={disabled} aria-disabled={loading || undefined}>
{nextLabel}
</button>
{nextNote ? <p className='tso12-note'>{nextNote}</p> : null}
</div>
<p className='tso12-secure'>
<Lock className='tso12-inl' size={16} strokeWidth={2.5} aria-hidden />
{copy.secure}
</p>
</div>
) : (
<div className='tso12-pane' key='s2'>
<h3 id={`${uid}-step`} ref={headRef} tabIndex={-1} className='tso12-h3'>
{step2Heading}
</h3>
{who ? (
<div className='tso12-who'>
<UserCheck className='tso12-whoicon' size={18} strokeWidth={2.5} aria-hidden />
<p>
<span className='tso12-whol'>{copy.sendingTo}</span> {who}
</p>
<button type='button' className='tso12-edit' onClick={goBack} disabled={locked}>
{copy.edit}
</button>
</div>
) : null}
{acceptedCards.length ? (
<div className='tso12-cards'>
<span>{copy.weAccept}</span>
{acceptedCards.map((mark) => (
<CardMarkIcon key={mark} mark={mark} label={copy[CARD_COPY[mark]]} />
))}
</div>
) : null}
<div className='tso12-fields'>{renderFields(paymentFields)}</div>
{bump ? (
<div className='tso12-bump' data-on={bumpOn ? 'true' : undefined}>
<label className='tso12-bumpstrip' htmlFor={`${uid}-bump`}>
<span className='tso12-box'>
<input id={`${uid}-bump`} type='checkbox' checked={bumpOn} onChange={(e) => setBumpOn(e.target.checked)} disabled={locked} />
<Check className='tso12-boxtick' size={18} strokeWidth={3} aria-hidden />
</span>
<span>{fill(copy.bumpLabel, { title: bump.title, price: bump.price })}</span>
</label>
{bump.body ? <p className='tso12-bumpbody'>{fill(bump.body, { price: bump.price })}</p> : null}
</div>
) : null}
<dl className='tso12-summary'>
<div className='tso12-line'>
<dt>{productName}</dt>
<dd>{money(base, currency)}</dd>
</div>
{bump && bumpOn ? (
<div className='tso12-line tso12-added'>
<dt>{bump.summaryLabel ?? bump.title}</dt>
<dd>{money(bumpAmt, currency)}</dd>
</div>
) : null}
<div className='tso12-line tso12-total'>
<dt>{copy.totalLabel}</dt>
<dd>{totalText}</dd>
</div>
</dl>
<div className='tso12-actions'>
<button type='submit' className='tso12-btn tso12-btn-lg' disabled={disabled} aria-disabled={loading || undefined} data-loading={loading ? 'true' : undefined}>
{loading ? (
<>
<Loader2 className='tso12-spin' size={20} strokeWidth={2.5} aria-hidden />
{copy.processing}
</>
) : (
orderLabel
)}
</button>
{orderNote ? (
<p className='tso12-note'>
<Lock className='tso12-inl' size={16} strokeWidth={2.5} aria-hidden />
{fill(orderNote, { total: totalText })}
</p>
) : null}
<button type='button' className='tso12-btn2' onClick={goBack} disabled={locked}>
{backLabel}
</button>
</div>
</div>
)}
</form>
</div>
)
}
export default TwoStepOrder12
const COPY = {
stepsLabel: 'Checkout steps',
stepWord: 'Step {n}',
completed: 'completed',
regularLabel: 'Regular price',
todayLabel: 'Today',
valueLabel: '{value} value',
secure: 'Secure checkout · Instant download',
sendingTo: 'Sending to',
edit: 'Edit',
weAccept: 'We accept',
bumpLabel: 'Yes! Add {title} for {price}',
totalLabel: 'Total today',
processing: 'Processing your order…',
alert: 'Please fix {count} {fields} to continue.',
fieldWord: 'field',
fieldsWord: 'fields',
submitError: 'We couldn’t complete your order. Please try again.',
required: 'Enter your {label}.',
email: 'Enter a valid email address.',
card: 'Enter a valid card number.',
expiry: 'Enter the expiry as MM / YY.',
cvc: 'Enter the 3 or 4 digit code.',
cardVisa: 'Visa',
cardMastercard: 'Mastercard',
cardAmex: 'American Express',
cardDiscover: 'Discover',
}
const CARD_COPY: Record<CardMark, keyof typeof COPY> = {
visa: 'cardVisa',
mastercard: 'cardMastercard',
amex: 'cardAmex',
discover: 'cardDiscover',
}
const DEFAULT_PUNCH = ['The guide maps your funnel.', 'The workbook writes your page.', 'The checklist checks every step.']
const ALL_CARDS: CardMark[] = ['visa', 'mastercard', 'amex', 'discover']
const CONTACT_FIELDS: BentoField[] = [
{ name: 'name', label: 'Full name', autoComplete: 'name', placeholder: 'Jane Smith' },
{ name: 'email', label: 'Email address', type: 'email', inputMode: 'email', autoComplete: 'email', placeholder: 'you@example.com' },
]
const SHIPPING_FIELDS: BentoField[] = [
{ name: 'address', label: 'Street address', autoComplete: 'shipping street-address', placeholder: '123 Main Street' },
{ name: 'city', label: 'City', autoComplete: 'shipping address-level2', placeholder: 'Austin', half: true },
{ name: 'zip', label: 'ZIP code', autoComplete: 'shipping postal-code', placeholder: '78701', inputMode: 'numeric', half: true },
]
const PAYMENT_FIELDS: BentoField[] = [
{ name: 'cardNumber', label: 'Card number', autoComplete: 'cc-number', inputMode: 'numeric', placeholder: '1234 5678 9012 3456' },
{ name: 'cardExpiry', label: 'Expiry', autoComplete: 'cc-exp', inputMode: 'numeric', placeholder: 'MM / YY', half: true },
{ name: 'cardCvc', label: 'CVC', autoComplete: 'cc-csc', inputMode: 'numeric', placeholder: '123', half: true },
]
const PLACEHOLDERS: Record<string, string> = {
name: 'Jane Smith',
email: 'you@example.com',
phone: '(555) 123-4567',
address: '123 Main Street',
city: 'Austin',
zip: '78701',
cardNumber: '1234 5678 9012 3456',
cardExpiry: 'MM / YY',
cardCvc: '123',
}
const ICONS: Partial<Record<string, LucideIcon>> = {
name: User,
email: Mail,
address: MapPin,
city: MapPin,
zip: MapPin,
cardNumber: CreditCard,
cardExpiry: CalendarDays,
cardCvc: Lock,
}
// Official payment-network SVG marks keep their brand colours (theme-contract mark exception).
function CardMarkIcon({ mark, label }: { mark: CardMark; label: string }) {
if (mark === 'visa') return <Visa aria-label={label} />
if (mark === 'mastercard') return <Mastercard aria-label={label} />
if (mark === 'amex') return <AmericanExpress aria-label={label} />
return <Discover aria-label={label} />
}
function defined<T>(o?: Partial<T>): Partial<T> {
return Object.fromEntries(Object.entries(o ?? {}).filter(([, v]) => v !== undefined)) as Partial<T>
}
function fill(template: string, vars: Record<string, string>) {
let out = template
for (const [k, v] of Object.entries(vars)) out = out.split('{' + k + '}').join(v)
return out
}
function placeholderFor(f: BentoField) {
if (f.type === 'email') return 'you@example.com'
return PLACEHOLDERS[f.name] ?? 'Type your answer'
}
const digits = (s: string) => s.replace(/[^0-9]/g, '')
function toNum(s?: string) {
if (!s) return 0
const n = parseFloat(s.replace(/[^0-9.]/g, ''))
return Number.isFinite(n) ? n : 0
}
function money(n: number, currency: string) {
const whole = Math.abs(n - Math.round(n)) < 0.005
try {
return new Intl.NumberFormat('en-US', { style: 'currency', currency, minimumFractionDigits: whole ? 0 : 2, maximumFractionDigits: whole ? 0 : 2 }).format(n)
} catch {
return '$' + n.toFixed(whole ? 0 : 2)
}
}
function shape(name: string, raw: string) {
if (name === 'cardNumber') return digits(raw).slice(0, 19).replace(/(.{4})/g, '$1 ').trim()
if (name === 'cardExpiry') {
const d = digits(raw).slice(0, 4)
return d.length > 2 ? d.slice(0, 2) + ' / ' + d.slice(2) : d
}
if (name === 'cardCvc') return digits(raw).slice(0, 4)
return raw
}
function pick(list: BentoField[], values: Record<string, string>) {
const out: Record<string, string> = {}
for (const f of list) out[f.name] = (values[f.name] ?? '').trim()
return out
}
function validate(list: BentoField[], values: Record<string, string>, copy: TwoStepOrder12Copy) {
const out: Record<string, string> = {}
for (const f of list) {
const v = (values[f.name] ?? '').trim()
if (!v) {
out[f.name] = fill(copy.required, { label: f.label.toLowerCase() })
continue
}
if (f.type === 'email' && !/^[^ @]+@[^ @]+[.][^ @]+$/.test(v)) out[f.name] = copy.email
else if (f.name === 'cardNumber' && (digits(v).length < 13 || digits(v).length > 19)) out[f.name] = copy.card
else if (f.name === 'cardExpiry' && !/^(0[1-9]|1[0-2]) [/] [0-9]{2}$/.test(v)) out[f.name] = copy.expiry
else if (f.name === 'cardCvc' && (digits(v).length < 3 || digits(v).length > 4)) out[f.name] = copy.cvc
}
return out
}
const CSS = `
.tso12{--tso12-gap:16px;--tso12-pad:clamp(20px,3vw,32px);--tso12-shade:var(--shadow, oklch(0.22 0.03 260));display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2.1fr);grid-template-areas:var(--tso12-lg);align-items:stretch;gap:var(--tso12-gap);width:100%;max-width:1120px;margin-inline:auto;color:var(--ink);font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;-webkit-font-smoothing:antialiased}
.tso12 *,.tso12 *::before,.tso12 *::after{box-sizing:border-box}
.tso12 :where(h2,h3,p,ul,ol,dl,dd){margin:0}
.tso12-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tso12-inl{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.tso12-tile{position:relative;min-width:0;padding:var(--tso12-pad);background:var(--card);color:var(--ink);border:1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius, var(--radius, 14px));box-shadow:var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(from var(--tso12-shade) l c h / 0.22), 0 4px 10px -2px oklch(from var(--tso12-shade) l c h / 0.2)));animation:tso12-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i, 0) * .07s)}
.tso12-promise{grid-area:p;--i:0;display:flex;flex-direction:column;gap:24px}
.tso12-tagtile{grid-area:t;--i:1}
.tso12-guarantee{grid-area:g;--i:2}
.tso12-kit{grid-area:k;--i:3}
.tso12-form{grid-area:f;--i:1}
.tso12-h2{font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -0.025em);text-transform:var(--display-case, none);text-wrap:balance;color:var(--ink)}
.tso12-hl{color:var(--accent)}
.tso12-punch{display:grid;gap:4px;margin-top:auto}
.tso12-punch p{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.tso12-punch .tso12-word{margin-top:8px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight, 800);letter-spacing:-0.01em;color:var(--accent)}
.tso12-h3{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight, 800);letter-spacing:-0.01em;text-transform:var(--display-case, none);text-wrap:balance;color:var(--ink)}
.tso12-h3:focus{outline:none}
.tso12-tagtile{display:flex;flex-direction:column;align-items:flex-start;padding-top:0;text-align:left}
.tso12-cord{position:relative;z-index:2;flex:1 0 28px;width:3px;margin-left:30px;margin-bottom:-26px;border-radius:0 0 3px 3px;background:var(--muted)}
.tso12-tag{flex:none;width:min(100%,184px);transform-origin:31px 26px;rotate:-3deg;filter:drop-shadow(0 2px 3px oklch(from var(--tso12-shade) l c h / 0.3)) drop-shadow(0 10px 12px oklch(from var(--tso12-shade) l c h / 0.22));animation:tso12-swing 1.1s cubic-bezier(.2,.7,.2,1) .2s both}
.tso12-tagbody{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:52px 20px 22px;text-align:left;color:var(--accent-fill-ink, var(--card));background:linear-gradient(oklch(from var(--accent-fill, var(--accent)) calc(l + 0.04) c h), oklch(from var(--accent-fill, var(--accent)) calc(l - 0.04) c h));border-radius:0 0 10px 10px;clip-path:polygon(22px 0,100% 0,100% 100%,0 100%,0 22px)}
.tso12-hole{position:absolute;top:18px;left:23px;width:16px;height:16px;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 3px oklch(from var(--accent-fill, var(--accent)) calc(l - 0.14) c h)}
.tso12-was{position:relative;display:inline-block;margin-bottom:4px;padding:0 4px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;text-decoration:none;font-variant-numeric:tabular-nums}
.tso12-was::after{content:'';position:absolute;left:-6px;right:-6px;top:50%;height:.16em;margin-top:-.08em;border-radius:999px;background:currentColor;rotate:-12deg}
.tso12-now{font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight, 800);letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.tso12-tagnote{margin-top:16px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-align:left;text-wrap:pretty}
.tso12-guarantee{display:flex;flex-direction:column;justify-content:center;gap:12px;background:var(--band);color:var(--band-ink);border-color:transparent}
.tso12-disc{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:999px;background:oklch(from var(--band-ink) l c h / 0.14);color:var(--band-ink)}
.tso12-gtitle{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight, 800);letter-spacing:-0.01em;text-wrap:balance;color:var(--band-ink)}
.tso12-gbody{font-size:.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
.tso12-kit{display:flex;flex-direction:column;gap:16px}
.tso12-items{list-style:none;padding:0;display:grid;grid-template-columns:repeat(var(--n, 3),minmax(0,1fr));gap:12px}
.tso12-items li{display:flex;flex-direction:column;gap:4px;min-width:0}
.tso12-items img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center;border-radius:8px;margin-bottom:8px}
.tso12-iname{font-size:.9375rem;line-height:1.3;font-weight:700;text-wrap:balance}
.tso12-ivalue{font-size:.9375rem;line-height:1.3;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.tso12-form{align-self:start;display:flex;flex-direction:column;gap:24px;border-color:oklch(from var(--accent) l c h / 0.38);box-shadow:var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--tso12-shade) l c h / 0.22), 0 12px 24px -8px oklch(from var(--tso12-shade) l c h / 0.32)))}
.tso12-tabs{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px;padding:4px;border-radius:var(--radius, 12px);background:color-mix(in oklch, var(--ink) 6%, var(--card))}
.tso12-tab{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 12px;border:0;border-radius:calc(var(--radius, 12px) - 3px);background:transparent;color:var(--muted);font:inherit;text-align:left;cursor:pointer;transition:background .16s ease, box-shadow .16s ease, color .16s ease}
.tso12-tab:hover:not(:disabled):not([aria-current=step]){background:color-mix(in oklch, var(--ink) 3%, var(--card));color:var(--ink)}
.tso12-tab[aria-current=step]{background:var(--card);color:var(--ink);box-shadow:var(--shadow-sm, 0 1px 1px oklch(from var(--tso12-shade) l c h / 0.18), 0 1px 3px oklch(from var(--tso12-shade) l c h / 0.14));cursor:default}
.tso12-tab:disabled{cursor:not-allowed}
.tso12-num{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:999px;background:var(--secondary);color:var(--secondary-ink);font-family:var(--font-display);font-size:.875rem;font-weight:800;font-variant-numeric:tabular-nums}
.tso12-tab[aria-current=step] .tso12-num{background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card))}
.tso12-tab[data-done=true] .tso12-num{background:var(--success);color:var(--status-glyph, #fff)}
.tso12-tabtext{display:grid;gap:2px;min-width:0}
.tso12-tabstep{font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.tso12-tab[aria-current=step] .tso12-tabstep{color:var(--accent)}
.tso12-tablabel{font-size:1rem;line-height:1.2;font-weight:700;overflow-wrap:anywhere}
.tso12-live:empty{display:none}
.tso12-alert{padding:12px 16px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;line-height:1.4;font-weight:700;text-wrap:pretty}
.tso12-pane{display:flex;flex-direction:column;gap:24px;flex:1 1 auto}
.tso12-fields{display:grid;gap:16px}
.tso12-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.tso12-field{display:grid;gap:8px;min-width:0}
.tso12-field label{font-size:1rem;line-height:1.25;font-weight:700;color:var(--label-ink, var(--ink))}
.tso12-control{position:relative}
.tso12-ficon{position:absolute;left:16px;top:50%;translate:0 -50%;color:color-mix(in oklch, var(--field-ink) 60%, var(--field));pointer-events:none}
.tso12-control input{display:block;width:100%;height:56px;padding:0 16px;font:inherit;font-size:17px;color:var(--field-ink);background:var(--field);border:1px solid var(--field-border, color-mix(in oklch, var(--ink) 22%, transparent));border-radius:var(--field-radius, var(--radius, 12px));box-shadow:inset 0 1px 2px oklch(from var(--tso12-shade) l c h / 0.08);appearance:none;transition:border-color .16s ease, box-shadow .16s ease}
.tso12-control[data-icon=true] input{padding-left:46px}
.tso12-control input::placeholder{color:color-mix(in oklch, var(--field-ink) 65%, var(--field));opacity:1}
.tso12-control input:hover:not(:disabled){border-color:color-mix(in oklch, var(--ink) 40%, transparent)}
.tso12-control input:focus{outline:none;border-color:var(--field-focus, var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus, var(--accent)) l c h / 0.35)}
.tso12-field[data-invalid=true] input{border-color:var(--danger)}
.tso12-field[data-invalid=true] input:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / 0.3)}
.tso12-control input:disabled{background:color-mix(in oklch, var(--ink) 5%, var(--field));cursor:not-allowed}
.tso12-err{font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger);text-wrap:pretty}
.tso12-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.tso12-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:64px;padding:12px 24px;border:0;border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.02) c h));color:var(--button-ink, var(--cta-ink));font-family:var(--button-font, var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);text-align:center;text-wrap:balance;text-shadow:var(--button-text-shadow, none);cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--tso12-shade) l c h / 0.3), 0 8px 16px -6px oklch(from var(--tso12-shade) l c h / 0.45));transition:background .16s ease, box-shadow .16s ease, transform .16s ease}
.tso12-btn-lg{min-height:72px}
.tso12-btn:hover:not(:disabled){background:linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.01) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.07) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.1) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--tso12-shade) l c h / 0.32), 0 10px 20px -6px oklch(from var(--tso12-shade) l c h / 0.5))}
.tso12-btn:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--button-bg, var(--cta)) calc(l - 0.22) c h / 0.6), inset 0 -2px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--tso12-shade) l c h / 0.3)}
.tso12-btn[data-loading=true]{cursor:progress}
.tso12-btn:focus-visible,.tso12-btn2:focus-visible,.tso12-tab:focus-visible,.tso12-edit:focus-visible{outline:3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.6);outline-offset:2px}
.tso12-btn:disabled,.tso12-btn2:disabled{background:var(--secondary);color:var(--muted);text-shadow:none;box-shadow:none;cursor:not-allowed}
.tso12-btn2{display:inline-flex;align-items:center;justify-content:center;align-self:center;min-width:160px;min-height:56px;padding:0 28px;border:1px solid var(--button-2-border, transparent);border-radius:var(--button-radius, var(--radius, 12px));background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));font-family:var(--button-font, var(--font-display));font-size:1.125rem;line-height:1.15;font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);box-shadow:var(--button-2-shadow, var(--shadow-sm));cursor:pointer;transition:background .16s ease, box-shadow .16s ease, transform .16s ease}
.tso12-btn2:hover:not(:disabled){background:oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.04) c h)}
.tso12-btn2:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.tso12-note{text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.tso12-secure{margin-top:-8px;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.tso12-spin{animation:tso12-spin .8s linear infinite}
.tso12-who{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-radius:10px;background:color-mix(in oklch, var(--ink) 4%, var(--card))}
.tso12-who p{flex:1;min-width:0;font-size:.9375rem;line-height:1.4;overflow-wrap:anywhere}
.tso12-whol{font-weight:800}
.tso12-whoicon{flex:none;margin-top:1px;color:var(--success)}
.tso12-edit{flex:none;margin:-8px -8px -8px 0;padding:8px;border:0;background:none;color:var(--link, var(--accent));font:inherit;font-size:.9375rem;line-height:1.4;font-weight:700;text-decoration:underline;text-decoration-color:oklch(from var(--link, var(--accent)) l c h / 0.45);text-underline-offset:.18em;cursor:pointer;border-radius:6px}
.tso12-edit:hover:not(:disabled){color:oklch(from var(--link, var(--accent)) calc(l - 0.08) c h);text-decoration-color:currentColor}
.tso12-edit:disabled{color:var(--muted);cursor:not-allowed}
.tso12-cards{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted)}
.tso12-cards span{margin-inline-end:4px}
.tso12-cards svg{display:block;width:40px;height:auto}
.tso12-bump{overflow:hidden;border:2px solid oklch(from var(--bump-strip, oklch(0.93 0.11 95)) calc(l - 0.14) c h / 0.7);border-radius:var(--radius, 12px);background:var(--bump, oklch(0.975 0.04 95));color:var(--bump-ink, var(--ink));transition:border-color .16s ease}
.tso12-bump[data-on=true]{border-color:var(--success)}
.tso12-bumpstrip{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--bump-strip, oklch(0.93 0.11 95));color:var(--bump-ink, var(--ink));font-size:1.0625rem;line-height:1.3;font-weight:800;text-wrap:pretty;cursor:pointer}
.tso12-box{position:relative;flex:none;width:26px;height:26px}
.tso12-box input{position:absolute;inset:0;width:100%;height:100%;margin:0;appearance:none;border:2px solid var(--bump-ink, var(--ink));border-radius:6px;background:var(--field);cursor:pointer;transition:background .16s ease, border-color .16s ease}
.tso12-box input:checked{background:var(--success);border-color:var(--success)}
.tso12-box input:focus-visible{outline:3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.6);outline-offset:2px}
.tso12-box input:disabled{cursor:not-allowed}
.tso12-boxtick{position:absolute;inset:0;margin:auto;color:var(--status-glyph, #fff);opacity:0;transform:scale(.6);pointer-events:none;transition:opacity .16s ease, transform .16s ease}
.tso12-box input:checked + .tso12-boxtick{opacity:1;transform:none}
.tso12-bumpbody{padding:12px 16px 16px;font-size:1rem;line-height:1.45;text-wrap:pretty;color:var(--bump-ink, var(--ink))}
.tso12-summary{display:grid;gap:8px;padding:16px;border-radius:10px;background:color-mix(in oklch, var(--ink) 4%, var(--card))}
.tso12-line{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.tso12-line dt{min-width:0;font-size:1rem;line-height:1.35}
.tso12-line dd{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.tso12-added{animation:tso12-rise .3s cubic-bezier(.2,.7,.2,1) both}
.tso12-total{margin-top:8px}
.tso12-total dt{font-family:var(--font-display);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.2;font-weight:800}
.tso12-total dd{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;letter-spacing:-0.01em}
@keyframes tso12-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes tso12-swing{0%{rotate:-10deg}55%{rotate:2deg}80%{rotate:-4.5deg}100%{rotate:-3deg}}
@keyframes tso12-spin{to{rotate:360deg}}
@media (max-width:900px){
.tso12{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:var(--tso12-sm)}
}
@media (max-width:480px){
.tso12{--tso12-gap:12px}
.tso12-num{display:none}
.tso12-tab{min-height:56px}
.tso12-tagtile,.tso12-guarantee{padding-inline:16px}
.tso12-items{gap:8px}
}
/* !important keeps every inherited animation still under reduced motion, whatever the selector weight. */
@media (prefers-reduced-motion:reduce){
.tso12 *,.tso12 *::before,.tso12 *::after,.tso12-tile{animation:none !important;transition:none !important}
.tso12-tag{rotate:-3deg}
}
`
pieces/checkout/two-step-order-12/specimen.tsx 40 lines
import * as React from 'react'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { TwoStepOrder12, type TwoStepOrder12State } from '../two-step-order-12'
export const states = ['default', 'active', 'disabled', 'error']
const sample = defaults.sample
export default function TwoStepOrder12Specimen({ state = 'default' }: { state?: TwoStepOrder12State }) {
const items = sample.items.map((it, i) => ({
name: it.name,
value: it.value,
image: slot(`item-${i + 1}`, it.image),
imageAlt: it.imageAlt,
}))
return (
<TwoStepOrder12
key={state}
state={state}
headline={sample.headline}
highlight='a clear plan'
productName={sample.name}
productNote={sample.note}
price={sample.price}
regularPrice={sample.regularPrice}
items={items}
guarantee={sample.guarantee}
orderLabel={`Yes! I Want ${sample.name}`}
bump={{
title: 'the Follow-Up Email Pack',
price: '$27',
summaryLabel: 'Follow-Up Email Pack',
body: 'Five fill-in-the-blank emails to send after someone joins your list. Same download, nothing extra to set up.',
}}
defaultValues={state === 'active' ? { name: 'Jane Smith', email: 'jane@example.com' } : undefined}
onSubmit={() => undefined}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalTwoStepOrder12 |
string |
Default 'Build your first funnel with a clear plan'
|
highlight OptionalTwoStepOrder12 |
string |
Default 'a clear plan'
|
punchLines OptionalTwoStepOrder12 |
string[] |
Default DEFAULT_PUNCH
|
punchWord OptionalTwoStepOrder12 |
string |
Default 'Done.'
|
productName OptionalTwoStepOrder12 |
string |
Default 'The Funnel Starter Kit'
|
productNote OptionalTwoStepOrder12 |
string |
Default 'One payment · Lifetime access'
|
price OptionalTwoStepOrder12 |
string |
Default '$47'
|
regularPrice OptionalTwoStepOrder12 |
string |
|
items OptionalTwoStepOrder12 |
BentoItem[] |
Default []
|
kitHeading OptionalTwoStepOrder12 |
string |
Default 'Three tools. One download.'
|
guarantee OptionalTwoStepOrder12 |
string | null |
Default '30-day money-back guarantee'
|
guaranteeBody OptionalTwoStepOrder12 |
string |
Default 'Try the whole kit. Not for you? Get your money back.'
|
steps OptionalTwoStepOrder12 |
[string, string] |
Default ['Your details', 'Payment']
|
fields OptionalTwoStepOrder12 |
BentoField[] |
Default CONTACT_FIELDS
|
collectShipping OptionalTwoStepOrder12 |
boolean |
Default false
|
shippingFields OptionalTwoStepOrder12 |
BentoField[] |
Default SHIPPING_FIELDS
|
paymentFields OptionalTwoStepOrder12 |
BentoField[] |
Default PAYMENT_FIELDS
|
step1Heading OptionalTwoStepOrder12 |
string |
Default 'Where should we send your kit?'
|
step2Heading OptionalTwoStepOrder12 |
string |
Default 'Complete your order'
|
nextLabel OptionalTwoStepOrder12 |
string |
Default 'Go To Step 2: Payment'
|
nextNote OptionalTwoStepOrder12 |
string |
Default 'You’ll see your full total before you pay.'
|
orderLabel OptionalTwoStepOrder12 |
string |
Default 'Yes! I Want The Funnel Starter Kit'
|
orderNote OptionalTwoStepOrder12 |
string |
Default '{total} today · Secure checkout · Instant download'
|
backLabel OptionalTwoStepOrder12 |
string |
Default 'Back'
|
bump OptionalTwoStepOrder12 |
BentoBump | null |
Default null
|
acceptedCards OptionalTwoStepOrder12 |
CardMark[] |
Default ALL_CARDS
|
currency OptionalTwoStepOrder12 |
string |
Default 'USD'
|
copy OptionalTwoStepOrder12 |
Partial<TwoStepOrder12Copy> |
|
state OptionalTwoStepOrder12 |
TwoStepOrder12State |
|
initialStep OptionalTwoStepOrder12 |
1 | 2 |
Default 1
|
defaultValues OptionalTwoStepOrder12 |
Record<string, string> |
|
disabled OptionalTwoStepOrder12 |
boolean |
Default false
|
onContinue OptionalTwoStepOrder12 |
(values: Readonly<Record<string, string>>) => void |
|
onSubmit OptionalTwoStepOrder12 |
(values: Readonly<Record<string, string>>, bumpSelected: boolean) => void | Promise<void> |
|
className OptionalTwoStepOrder12 |
string |
Default ''
|
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
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.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB