Application Form 1
High-ticket qualification band — a centred preamble with fit chips, the fit criteria and review process beside a stepped application, and the qualified / alternate / waitlist outcome swapped in on send. No price on the page.
Use it in a prompt
Use forms/application-form 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/forms/application-form.tsx. - Import it and pass your copy and images (Props tab):
import { ApplicationForm } from "@/components/funneldna/forms/application-form"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/forms/application-form/component.tsx 886 lines
// Shows who the program is for and walks applicants through a short stepped application with a review before they send.
"use client"
import * as React from "react"
import {
AlertCircle,
Check,
Loader2,
Pencil,
ShieldCheck,
X,
} from "lucide-react"
export type ApplicationFormProps = {
/** Supporting, accessibility and validation copy; brace placeholders retain the current step or answer label. */
copy?: Partial<ApplicationFormCopy>
/** Receives valid answers; the decide prop remains an alias. A returned promise shows the sending label; a rejection shows sendErrorText. The returned outcome is no longer rendered. */
onSubmit?: (values: Record<string, string>) => ApplicationResultState | Promise<ApplicationResultState> | void | Promise<void>
/** Studio preview; previewState remains supported for existing callers. "success" renders as default. */
state?: "default" | "error" | "success"
/** The band headline. */
title: string
/** A phrase inside `title` that gets the yellow marker stroke. */
highlight?: string
/** One line under the headline. */
lead?: React.ReactNode
/** Two to four "who this fits" chips under the lead. */
chips?: string[]
fitTitle?: string
fitLead?: React.ReactNode
forLabel?: string
/** The fit criteria. Three to five. */
forItems: string[]
notForLabel?: string
/** Who should not apply. One to three. */
notForItems?: string[]
processLabel?: string
/** What happens when they apply: two to four short steps. */
process?: { title: string; detail?: string }[]
/** Honest note under the process: possible outcomes, no promises. */
processNote?: React.ReactNode
formTitle?: string
/** Two to three question steps. A review step is appended. */
steps: ApplicationStep[]
reviewLabel?: string
nextLabel?: string
backLabel?: string
submitLabel?: string
sendingLabel?: string
/** @deprecated No longer rendered: the builder wires what happens after submit. */
sentLabel?: string
afterSendTitle?: string
afterSendNote?: string
sendErrorText?: string
/** Legacy alias for onSubmit. */
decide?: (
values: Record<string, string>
) => ApplicationResultState | Promise<ApplicationResultState> | void | Promise<void>
/** @deprecated No longer rendered: the builder wires what happens after submit. */
outcomes?: {
qualified: ApplicationOutcome
alternate?: ApplicationOutcome
waitlist?: ApplicationOutcome
}
/** Optional subtle photo behind the band (shown at low opacity under the band colour). */
sceneImage?: string
initialStep?: number
initialValues?: Record<string, string>
/** Legacy alias for state. */
previewState?: "default" | "error" | "success"
/** @deprecated No longer rendered: the builder wires what happens after submit. */
previewResult?: ApplicationResultState
className?: string
}
export function ApplicationForm({
copy: copyOverrides,
onSubmit: submitApplication,
title,
highlight,
lead,
chips,
fitTitle = "Is this the right fit for you?",
fitLead,
forLabel = "This is for you if",
forItems,
notForLabel = "Not a fit if",
notForItems,
processLabel = "How your application works",
process,
processNote,
formTitle = "Your application",
steps,
reviewLabel = "Review",
nextLabel = "Continue",
backLabel = "Back",
submitLabel = "Send My Application",
sendingLabel = "Sending…",
afterSendTitle = "After you send, you’ll go to your next step.",
afterSendNote = "Your answers are saved with your application.",
sendErrorText = "We couldn’t send your application. Please try again.",
decide,
sceneImage,
initialStep = 0,
initialValues,
previewState,
state = previewState ?? "default",
className,
}: ApplicationFormProps) {
const copy = { ...APPLICATION_COPY, ...Object.fromEntries(Object.entries(copyOverrides ?? {}).filter(([, value]) => value !== undefined)) }
const uid = React.useId()
const reviewIndex = steps.length
const titles = [...steps.map((s) => s.title), reviewLabel]
const total = titles.length
const startStep = state === "error" ? 0 : clampStep(initialStep, reviewIndex)
const [step, setStep] = React.useState(startStep)
const [maxReached, setMaxReached] = React.useState(startStep)
const [values, setValues] = React.useState<Record<string, string>>(() =>
state === "error" ? {} : { ...(initialValues ?? {}) }
)
const [errors, setErrors] = React.useState<Record<string, string>>(() =>
state === "error" && steps[0] ? collectErrors(steps[0].fields, {}, copy) : {}
)
const [status, setStatus] = React.useState<"idle" | "sending" | "failed">("idle")
const [focusTick, setFocusTick] = React.useState(0)
const panelRef = React.useRef<HTMLDivElement>(null)
const focusTarget = React.useRef<string | null>(null)
const requestFocus = (name: string | null) => {
focusTarget.current = name
setFocusTick((t) => t + 1)
}
React.useEffect(() => {
if (!focusTick) return
const panel = panelRef.current
if (!panel) return
const name = focusTarget.current
focusTarget.current = null
const el = name
? panel.querySelector<HTMLElement>(`[data-field="${name}"]`)
: panel.querySelector<HTMLElement>("input, textarea, [data-edit]")
;(el ?? panel).focus()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [focusTick])
const sending = status === "sending"
const percent = Math.round(((step + 1) / total) * 100)
const hasProcess = Boolean((process && process.length > 0) || processNote)
const setValue = (name: string, value: string) => {
setValues((prev) => ({ ...prev, [name]: value }))
if (errors[name]) {
setErrors((prev) => {
const next = { ...prev }
delete next[name]
return next
})
}
if (status === "failed") setStatus("idle")
}
const goTo = (index: number) => {
if (sending) return
setErrors({})
setStatus("idle")
setStep(index)
requestFocus(null)
}
const advance = () => {
const fields = steps[step]?.fields ?? []
const found = collectErrors(fields, values, copy)
const first = fields.find((f) => found[f.name])
if (first) {
setErrors(found)
requestFocus(first.name)
return
}
const next = step + 1
setErrors({})
setStep(next)
setMaxReached((m) => Math.max(m, next))
requestFocus(null)
}
const send = async () => {
for (let i = 0; i < steps.length; i++) {
const found = collectErrors(steps[i].fields, values, copy)
const first = steps[i].fields.find((f) => found[f.name])
if (first) {
setErrors(found)
setStep(i)
requestFocus(first.name)
return
}
}
try {
const pending = (submitApplication ?? decide)?.(values)
if (!isThenable(pending)) return
setStatus("sending")
await pending
setStatus("idle")
} catch {
setStatus("failed")
}
}
const onSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault()
if (sending) return
if (step < reviewIndex) advance()
else void send()
}
return (
<section
className={["cf-application-form apf", className].filter(Boolean).join(" ")}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
{sceneImage && (
<div className="apf-bg" aria-hidden="true">
<img src={sceneImage} alt="" decoding="async" />
</div>
)}
<div className="apf-inner">
<header className="apf-head">
<h2 id={`${uid}-h`} className="apf-title">
{renderTitle(title, highlight)}
</h2>
{lead && <p className="apf-lead">{lead}</p>}
{chips && chips.length > 0 && (
<ul className="apf-chips" aria-label={copy.fitChipsLabel}>
{chips.map((chip) => (
<li key={chip} className="apf-chip">
<span className="apf-chip-ico" aria-hidden="true">
<Check strokeWidth={3.5} />
</span>
{chip}
</li>
))}
</ul>
)}
</header>
<div className="apf-grid">
<div className="apf-fit">
<div className="apf-paper">
<h3 className="apf-h3">{fitTitle}</h3>
{fitLead && <p className="apf-paper-lead">{fitLead}</p>}
<p className="apf-sub">{forLabel}</p>
<ul className="apf-list">
{forItems.map((item) => (
<li key={item}>
<span className="apf-ico is-yes" aria-hidden="true">
<Check />
</span>
<span>{item}</span>
</li>
))}
</ul>
{notForItems && notForItems.length > 0 && (
<>
<p className="apf-sub">{notForLabel}</p>
<ul className="apf-list is-not">
{notForItems.map((item) => (
<li key={item}>
<span className="apf-ico is-no" aria-hidden="true">
<X />
</span>
<span>{item}</span>
</li>
))}
</ul>
</>
)}
</div>
</div>
<div className="apf-formcell">
<div className="apf-sticky">
<div className="apf-plate" aria-hidden="true" />
<div className="apf-card">
<h3 id={`${uid}-form`} className="apf-card-title">
{formTitle}
</h3>
<div className="apf-progress-row">
<span>
{copy.stepProgress.replace("{step}", String(step + 1)).replace("{total}", String(total)).replace("{title}", () => titles[step])}
</span>
<b>{percent}%</b>
</div>
<div
className="apf-bar"
role="progressbar"
aria-label={copy.progressLabel}
aria-valuemin={0}
aria-valuemax={100}
aria-valuenow={percent}
>
<span style={{ width: `${percent}%` }} />
</div>
<nav aria-label={copy.stepsLabel}>
<ol
className="apf-tabs"
style={{ gridTemplateColumns: `repeat(${total}, minmax(0, 1fr))` }}
>
{titles.map((label, i) => {
const current = i === step
const reachable = !current && i <= maxReached
const complete = !current && (i < step || i < maxReached)
return (
<li key={label}>
<button
type="button"
className={`apf-tab${current ? " is-current" : ""}${
reachable ? " is-reachable" : ""
}${complete ? " is-done" : ""}`}
aria-current={current ? "step" : undefined}
disabled={!reachable || sending}
onClick={() => goTo(i)}
>
<span className="apf-tab-n" aria-hidden="true">
{complete ? <Check strokeWidth={3.5} /> : i + 1}
</span>
<span className="apf-tab-l">{label}</span>
</button>
</li>
)
})}
</ol>
</nav>
<div aria-live="polite">
<form noValidate onSubmit={onSubmit} aria-labelledby={`${uid}-form`}>
<div
key={step}
ref={panelRef}
className="apf-panel"
role="group"
aria-label={titles[step]}
tabIndex={-1}
>
{step < reviewIndex ? (
steps[step].fields.map((field) => (
<FieldControl
optionalLabel={copy.optionalLabel}
key={field.name}
field={field}
id={`${uid}-${field.name}`}
value={values[field.name] ?? ""}
error={errors[field.name]}
disabled={sending}
onChange={(v) => setValue(field.name, v)}
/>
))
) : (
<AnswerList
copy={copy}
steps={steps}
values={values}
onEdit={sending ? undefined : goTo}
/>
)}
</div>
{status === "failed" && (
<div className="apf-alert" role="alert">
<AlertCircle aria-hidden="true" />
<span>{sendErrorText}</span>
</div>
)}
<div className={`apf-actions${step > 0 ? " has-back" : ""}`}>
{step > 0 && (
<button
type="button"
className="apf-btn apf-btn-secondary"
onClick={() => goTo(step - 1)}
disabled={sending}
>
<span>{backLabel}</span>
</button>
)}
<button
type="submit"
className="apf-btn apf-btn-primary"
disabled={sending}
aria-busy={sending || undefined}
>
{sending ? (
<>
<Loader2 className="apf-spin" aria-hidden="true" />
<span>{sendingLabel}</span>
</>
) : (
<span>
{step === reviewIndex
? submitLabel
: copy.nextStepLabel.replace("{label}", () => nextLabel).replace("{title}", () => titles[step + 1].toLowerCase())}
</span>
)}
</button>
</div>
</form>
</div>
{(afterSendTitle || afterSendNote) && (
<div className="apf-after">
<span className="apf-after-ico" aria-hidden="true">
<ShieldCheck />
</span>
<p>
{afterSendTitle && <strong>{afterSendTitle}</strong>}
{afterSendNote && <span>{afterSendNote}</span>}
</p>
</div>
)}
</div>
</div>
</div>
{hasProcess && (
<div className="apf-proc">
{process && process.length > 0 && (
<>
<h3 className="apf-h3">{processLabel}</h3>
<ol className="apf-steps">
{process.map((item, i) => (
<li key={item.title}>
<span className="apf-num" aria-hidden="true">
{i + 1}
</span>
<div>
<p className="apf-step-title">{item.title}</p>
{item.detail && <p className="apf-step-detail">{item.detail}</p>}
</div>
</li>
))}
</ol>
</>
)}
{processNote && <p className="apf-proc-note">{processNote}</p>}
</div>
)}
</div>
</div>
</section>
)
}
export default ApplicationForm
export type ApplicationResultState = "qualified" | "alternate" | "waitlist"
/** One question on the application. Text by default; `choice` renders full-width radio rows. */
export type ApplicationField = {
name: string
label: string
/** `choice` renders `options` as radio rows, `textarea` a multi-line answer. */
kind?: "text" | "email" | "tel" | "url" | "choice" | "textarea"
placeholder?: string
/** Quiet help line under the field: why you ask, never what to answer. */
description?: string
/** Every question is required unless you say otherwise. */
required?: boolean
autoComplete?: string
/** The answers for a `choice` field. */
options?: string[]
}
export type ApplicationStep = {
/** One topic per step: "About you", "Your funnel". A review step is added for you. */
title: string
fields: ApplicationField[]
}
/** Copy for one outcome (no longer rendered; kept for older callers). */
export type ApplicationOutcome = {
headline?: string
body: React.ReactNode
ctaLabel: string
ctaHref?: string
onCtaClick?: () => void
secondaryLabel?: string
secondaryHref?: string
note?: string
}
const EMAIL = /^[^ @]+@[^ @]+[.][^ @]{2,}$/
function isThenable(value: unknown): value is PromiseLike<unknown> {
return typeof (value as PromiseLike<unknown> | undefined)?.then === "function"
}
function fieldError(field: ApplicationField, raw: string | undefined, copy: ApplicationFormCopy): string | null {
const value = (raw ?? "").trim()
const required = field.required ?? true
if (!value) {
if (!required) return null
if (field.kind === "choice") return copy.choiceError
if (field.label.trim().endsWith("?")) return copy.answerError
return copy.requiredError.replace("{label}", () => field.label.toLowerCase())
}
if (field.kind === "email" && !EMAIL.test(value)) return copy.emailError
return null
}
function collectErrors(fields: ApplicationField[], values: Record<string, string>, copy: ApplicationFormCopy) {
const out: Record<string, string> = {}
for (const field of fields) {
const message = fieldError(field, values[field.name], copy)
if (message) out[field.name] = message
}
return out
}
function clampStep(n: number, max: number) {
return Math.min(Math.max(Math.round(n) || 0, 0), max)
}
function renderTitle(title: string, highlight?: string) {
if (!highlight || !title.includes(highlight)) return title
const at = title.indexOf(highlight)
return (
<>
{title.slice(0, at)}
<mark className="apf-mark">{highlight}</mark>
{title.slice(at + highlight.length)}
</>
)
}
type ApplicationFormCopy = {
fitChipsLabel: string
progressLabel: string
stepsLabel: string
stepProgress: string
sentBadge: string
answersLabel: string
editLabel: string
editStepLabel: string
unansweredLabel: string
optionalLabel: string
nextStepLabel: string
choiceError: string
answerError: string
requiredError: string
emailError: string
qualifiedHeadline: string
alternateHeadline: string
waitlistHeadline: string
}
const APPLICATION_COPY: ApplicationFormCopy = {
"fitChipsLabel": "Who this fits",
"progressLabel": "Application progress",
"stepsLabel": "Application steps",
"stepProgress": "Step {step} of {total} · {title}",
"sentBadge": "Application sent",
"answersLabel": "Your answers",
"editLabel": "Edit",
"editStepLabel": "Edit {title}",
"unansweredLabel": "Not answered",
"optionalLabel": " (optional)",
"nextStepLabel": "{label} to {title}",
"choiceError": "Choose the answer that fits you best.",
"answerError": "Add a short answer to continue.",
"requiredError": "Please add your {label}.",
"emailError": "Enter an email like name@example.com.",
"qualifiedHeadline": "You’re a fit",
"alternateHeadline": "Here’s your best next step",
"waitlistHeadline": "You’re on the waitlist"
}
function AnswerList({
copy,
steps,
values,
onEdit,
}: {
copy: ApplicationFormCopy
steps: ApplicationStep[]
values: Record<string, string>
onEdit?: (index: number) => void
}) {
return (
<div className="apf-review">
{steps.map((s, i) => (
<div key={s.title} className="apf-rgroup">
<div className="apf-rhead">
<h4>{s.title}</h4>
{onEdit && (
<button
type="button"
className="apf-edit"
data-edit="true"
aria-label={copy.editStepLabel.replace("{title}", () => s.title)}
onClick={() => onEdit(i)}
>
<Pencil aria-hidden="true" />
{copy.editLabel}
</button>
)}
</div>
<dl className="apf-dl">
{s.fields.map((f) => {
const v = (values[f.name] ?? "").trim()
return (
<div key={f.name} className="apf-row">
<dt>{f.label}</dt>
<dd className={v ? undefined : "is-empty"}>{v || copy.unansweredLabel}</dd>
</div>
)
})}
</dl>
</div>
))}
</div>
)
}
function FieldControl({
optionalLabel,
field,
id,
value,
error,
disabled,
onChange,
}: {
optionalLabel: string
field: ApplicationField
id: string
value: string
error?: string
disabled?: boolean
onChange: (value: string) => void
}) {
const required = field.required ?? true
const helpId = `${id}-help`
const errId = `${id}-err`
const describedBy =
[field.description ? helpId : "", error ? errId : ""].filter(Boolean).join(" ") || undefined
const optional = !required ? <span className="apf-opt">{optionalLabel}</span> : null
const help = field.description ? (
<p id={helpId} className="apf-help">
{field.description}
</p>
) : null
const errorLine = error ? (
<p id={errId} className="apf-error">
<AlertCircle aria-hidden="true" />
<span>{error}</span>
</p>
) : null
if (field.kind === "choice") {
return (
<fieldset
className={`apf-fieldset${error ? " is-invalid" : ""}`}
aria-describedby={describedBy}
disabled={disabled}
>
<legend className="apf-legend">
{field.label}
{optional}
</legend>
<div className="apf-choices">
{(field.options ?? []).map((option, i) => (
<label key={option} className="apf-choice" htmlFor={`${id}-${i}`}>
<input
id={`${id}-${i}`}
type="radio"
name={field.name}
value={option}
checked={value === option}
onChange={() => onChange(option)}
required={required}
aria-invalid={error ? true : undefined}
data-field={field.name}
/>
<span className="apf-radio" aria-hidden="true" />
<span>{option}</span>
</label>
))}
</div>
{help}
{errorLine}
</fieldset>
)
}
return (
<div className="apf-field">
<label htmlFor={id} className="apf-label">
{field.label}
{optional}
</label>
{field.kind === "textarea" ? (
<textarea
id={id}
name={field.name}
rows={3}
className="apf-input"
value={value}
placeholder={field.placeholder}
required={required}
disabled={disabled}
aria-invalid={error ? true : undefined}
aria-describedby={describedBy}
data-field={field.name}
onChange={(e) => onChange(e.target.value)}
/>
) : (
<input
id={id}
name={field.name}
type={field.kind ?? "text"}
inputMode={
field.kind === "email"
? "email"
: field.kind === "tel"
? "tel"
: field.kind === "url"
? "url"
: undefined
}
className="apf-input"
value={value}
placeholder={field.placeholder}
autoComplete={field.autoComplete}
required={required}
disabled={disabled}
aria-invalid={error ? true : undefined}
aria-describedby={describedBy}
data-field={field.name}
onChange={(e) => onChange(e.target.value)}
/>
)}
{help}
{errorLine}
</div>
)
}
// Designed photo colours are theme-contract exceptions.
const CSS = `
.cf-application-form{--apf-band:var(--band);--apf-band-ink:var(--band-ink);--apf-ink:var(--ink);--apf-muted:var(--muted);--apf-accent:var(--accent-fill,var(--accent));--apf-accent-deep:var(--ink);--apf-cta:var(--cta);--apf-cta-2:var(--cta-2);--apf-cta-ink:var(--cta-ink);--apf-card:var(--card);--apf-field:var(--field);--apf-field-ink:var(--field-ink);--apf-marker:color-mix(in oklch,var(--marker,#fae37c) 20%,var(--card));--apf-line:var(--card-border, oklch(from var(--ink) l c h / 0.12));--apf-soft:color-mix(in oklch,var(--ink) 3%,var(--card));--apf-ok:var(--success);--apf-bad:var(--danger);--apf-warn:var(--warning);--apf-paper:var(--card);--apf-paper-line:var(--card-border, oklch(from var(--ink) l c h / 0.12));position:relative;isolation:isolate;overflow:clip;background:var(--apf-band);color:var(--apf-band-ink);font-family:var(--font-body)}
.cf-application-form *,.cf-application-form *::before,.cf-application-form *::after{box-sizing:border-box}
.cf-application-form :where(h2,h3,h4,p,ul,ol,dl,dd,fieldset){margin:0}
.cf-application-form :where(ul,ol){padding:0;list-style:none}
.cf-application-form .apf-bg{position:absolute;inset:0;z-index:-1;pointer-events:none}
.cf-application-form .apf-bg img{display:block;width:100%;height:100%;object-fit:cover;opacity:.13;filter:grayscale(1) contrast(1.15)}
.cf-application-form .apf-inner{max-width:77rem;margin-inline:auto;padding:clamp(3.5rem,8vw,6.5rem) clamp(1.1rem,4vw,2rem)}
.cf-application-form .apf-head{display:grid;justify-items:center;text-align:center}
.cf-application-form .apf-title{font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(2.15rem,5.3vw,4.6rem);line-height:1.08;letter-spacing:var(--display-tracking, -.025em);max-width:min(100%,27ch);text-wrap:balance;color:var(--apf-band-ink);text-transform:var(--display-case, none)}
.cf-application-form .apf-mark{display:inline-block;white-space:nowrap;background:var(--apf-marker);color:var(--ink);padding:.04em .2em .08em;margin:.02em -.02em;border-radius:.22em .5em .28em .55em/.55em .24em .5em .26em;transform:rotate(-1deg);box-shadow:inset 0 -.12em 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 1px 0.3px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21)}
.cf-application-form .apf-lead{margin-top:clamp(1.1rem,1.6vw,1.45rem);max-width:40ch;font-size:clamp(1.12rem,1.7vw,1.4rem);font-weight:500;line-height:1.45;color:var(--apf-band-ink);text-wrap:pretty}
.cf-application-form .apf-chips{margin-top:1.6rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem}
.cf-application-form .apf-chip{display:inline-flex;align-items:center;gap:.55rem;padding:.5rem 1.15rem .5rem .55rem;border-radius:999px;background:var(--card);color:var(--apf-ink);font-weight:700;font-size:1rem;line-height:1.2;box-shadow:inset 0 0 0 1px oklch(from var(--ink) l c h / 0.26),inset 0 -2px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21)}
.cf-application-form .apf-chip-ico{flex:none;display:grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:999px;background:var(--success);color:var(--card);box-shadow:inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6)}
.cf-application-form .apf-chip-ico svg{width:.85rem;height:.85rem}
.cf-application-form .apf-grid{margin-top:clamp(2.5rem,5vw,4.25rem);display:grid;gap:1.9rem;grid-template-columns:minmax(0,1fr);grid-template-areas:'fit' 'form' 'proc';align-items:start}
.cf-application-form .apf-fit{grid-area:fit}.cf-application-form .apf-proc{grid-area:proc}.cf-application-form .apf-formcell{grid-area:form;align-self:stretch}
@media (min-width:1024px){.cf-application-form .apf-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto 1fr;grid-template-areas:'fit form' 'proc form';column-gap:clamp(2.5rem,4.5vw,4rem);row-gap:2.75rem}.cf-application-form .apf-sticky{position:sticky;top:1.5rem}}
.cf-application-form .apf-sticky{position:relative}
.cf-application-form .apf-plate{position:absolute;inset:0;z-index:0;border-radius:22px;background:oklch(from var(--apf-accent) calc(l - 0.08) c h);border:1px solid oklch(from var(--ink) l c h / 0.55);transform:translate(7px,9px);box-shadow:0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21)}
@media (min-width:1024px){.cf-application-form .apf-plate{transform:translate(16px,16px) rotate(1.2deg)}}
.cf-application-form .apf-paper{position:relative;background:var(--apf-paper);color:var(--apf-ink);border-radius:var(--card-radius, var(--radius,20px));padding:clamp(1.4rem,3vw,2.1rem);border:2px solid var(--apf-paper-line);box-shadow:var(--card-shadow, inset 0 0 0 5px var(--apf-paper),inset 0 0 0 6px oklch(from var(--ink) l c h / 0.65),0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21),0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21))}
.cf-application-form .apf-h3{font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(1.5rem,2.3vw,1.9rem);line-height:1.15;letter-spacing:var(--display-tracking, -.015em);text-wrap:balance;text-transform:var(--display-case, none)}
.cf-application-form .apf-paper-lead{margin-top:.7rem;font-size:1.1rem;font-weight:500;line-height:1.5;text-wrap:pretty}
.cf-application-form .apf-sub{margin-top:1.4rem;font-size:1rem;font-weight:800;line-height:1.3}
.cf-application-form .apf-list{margin-top:.75rem;display:grid;gap:.7rem}
.cf-application-form .apf-list li{display:flex;align-items:flex-start;gap:.7rem;font-size:1.05rem;font-weight:500;line-height:1.45;text-wrap:pretty}
.cf-application-form .apf-list.is-not li{color:var(--muted)}
.cf-application-form .apf-ico{flex:none;display:grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:999px;margin-top:.03rem}
.cf-application-form .apf-ico svg{width:.95rem;height:.95rem;stroke-width:3.25}
.cf-application-form .apf-ico.is-yes{background:var(--success);color:var(--card);box-shadow:none}
.cf-application-form .apf-ico.is-no{background:var(--danger);color:var(--card);box-shadow:none}
.cf-application-form .apf-proc{padding-top:.5rem}
.cf-application-form .apf-proc .apf-h3{color:var(--apf-band-ink);font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);letter-spacing:var(--display-tracking, -.015em)}
.cf-application-form .apf-steps{margin-top:1.4rem;display:grid;gap:1.3rem}
.cf-application-form .apf-steps li{position:relative;display:grid;grid-template-columns:2.6rem minmax(0,1fr);gap:1rem;align-items:start}
.cf-application-form .apf-steps li:not(:last-child)::after{content:'';position:absolute;left:1.3rem;top:3rem;bottom:-1.15rem;width:2px;transform:translateX(-1px);border-radius:2px;background:oklch(from var(--apf-band-ink) l c h / 0.24)}
.cf-application-form .apf-num{display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:999px;background:var(--card);color:var(--apf-accent-deep);font-family:var(--font-display);font-weight:800;font-size:1.15rem;box-shadow:0 0 0 4px oklch(from var(--apf-accent) l c h / 0.45),0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21)}
.cf-application-form .apf-step-title{padding-top:.45rem;font-size:1.2rem;font-weight:800;line-height:1.3;color:var(--apf-band-ink)}
.cf-application-form .apf-step-detail{margin-top:.3rem;font-size:1rem;line-height:1.5;color:var(--apf-band-ink);text-wrap:pretty}
.cf-application-form .apf-proc-note{margin-top:1.6rem;max-width:44ch;font-size:1rem;line-height:1.55;color:var(--apf-band-ink);text-wrap:pretty}
.cf-application-form .apf-card{position:relative;z-index:1;background:var(--apf-card);color:var(--apf-ink);border-radius:var(--card-radius, var(--radius,20px));padding:clamp(1.25rem,3vw,2.25rem);border:1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));box-shadow:var(--card-shadow, inset 0 0 0 4px var(--apf-card),inset 0 0 0 5px var(--card-border, oklch(from var(--ink) l c h / 0.12)),0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21))}
.cf-application-form .apf-card-title{font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(1.9rem,3.2vw,2.6rem);line-height:1.08;letter-spacing:var(--display-tracking, -.025em);color:var(--apf-ink);text-transform:var(--display-case, none)}
.cf-application-form .apf-progress-row{margin-top:.9rem;display:flex;justify-content:space-between;align-items:baseline;gap:1rem;font-size:1rem;font-weight:700;color:var(--apf-ink)}
.cf-application-form .apf-progress-row b{font-weight:800;font-variant-numeric:tabular-nums}
.cf-application-form .apf-bar{margin-top:.55rem;height:.7rem;border-radius:999px;background:color-mix(in oklch,var(--ink) 12%,var(--card));overflow:hidden;box-shadow:inset 0 1px 2px oklch(from var(--card) calc(l - 0.12) c h / 0.35)}
.cf-application-form .apf-bar span{display:block;height:100%;border-radius:inherit;background:var(--apf-accent);box-shadow:inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6);transition:width .5s cubic-bezier(.2,.8,.2,1)}
.cf-application-form .apf-tabs{margin-top:1rem;display:grid;gap:4px;padding:4px;border-radius:14px;background:color-mix(in oklch,var(--ink) 3%,var(--card));box-shadow:inset 0 1px 2px oklch(from var(--card) calc(l - 0.12) c h / 0.35)}
.cf-application-form .apf-tab{width:100%;min-height:3rem;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.45rem .6rem;border-radius:var(--button-radius, var(--radius, 10px));border:1px solid transparent;background:var(--button-2-bg, var(--card));color:var(--button-2-ink, var(--ink));font:inherit;font-size:.95rem;font-weight:700;line-height:1.15;text-align:center;cursor:default;transition:background-color .15s,border-color .15s,color .15s}
.cf-application-form .apf-tab-l{white-space:nowrap}
.cf-application-form .apf-tab-n{flex:none;display:grid;place-items:center;width:1.5rem;height:1.5rem;border-radius:999px;background:color-mix(in oklch,var(--ink) 8%,var(--card));color:var(--ink);font-size:.8rem;font-weight:800}
.cf-application-form .apf-tab-n svg{width:.85rem;height:.85rem}
.cf-application-form .apf-tab.is-reachable{color:var(--apf-ink);cursor:pointer}
.cf-application-form .apf-tab.is-done .apf-tab-n{background:var(--success);color:var(--card)}
.cf-application-form .apf-tab.is-reachable:hover{background:var(--card);border-color:var(--apf-line)}
.cf-application-form .apf-tab.is-current{background:var(--button-2-bg, var(--card));border-color:oklch(from var(--ink) l c h / 0.45);color:var(--button-2-ink, var(--ink));box-shadow:0 0 0 3px oklch(from var(--apf-accent) l c h / 0.12),0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21)}
.cf-application-form .apf-tab.is-current .apf-tab-n{background:var(--band);color:var(--band-ink)}
.cf-application-form .apf-tab:disabled{cursor:default}
.cf-application-form .apf-tab:focus-visible{outline:3px solid oklch(from var(--ink) l c h / 0.55);outline-offset:2px}
@media (max-width:479px){.cf-application-form .apf-tab{flex-direction:column;gap:.3rem;min-height:3.75rem;padding:.45rem .3rem;font-size:.875rem}.cf-application-form .apf-tab-l{white-space:normal}}
.cf-application-form .apf-panel{margin-top:1.4rem;display:grid;gap:1.25rem;outline:none}
@media (prefers-reduced-motion:no-preference){.cf-application-form .apf-panel{animation:apf-in .35s cubic-bezier(.2,.8,.2,1) both}}
@keyframes apf-in{from{opacity:.55;transform:translateY(6px)}to{opacity:1;transform:none}}
.cf-application-form .apf-field{display:grid;gap:.5rem}
.cf-application-form .apf-label,.cf-application-form .apf-legend{font-size:1.06rem;font-weight:800;line-height:1.3;color:var(--label-ink, var(--ink))}
.cf-application-form .apf-opt{font-weight:500;color:var(--apf-muted)}
.cf-application-form .apf-input{width:100%;min-width:0;min-height:3.4rem;padding:.8rem 1rem;border-radius:var(--field-radius, var(--radius,12px));border:1.5px solid var(--field-border, oklch(from var(--ink) l c h / 0.22));background:var(--apf-field);color:var(--apf-field-ink);font:inherit;font-size:1.06rem;font-weight:500;line-height:1.35;box-shadow:inset 0 1px 2px oklch(from var(--card) calc(l - 0.12) c h / 0.35);transition:border-color .15s,box-shadow .15s;border-color:var(--field-border, oklch(from var(--ink) l c h / 0.22))}
.cf-application-form textarea.apf-input{min-height:6.5rem;resize:vertical;line-height:1.5;border-radius:var(--field-radius, var(--radius,12px));border-color:var(--field-border, oklch(from var(--ink) l c h / 0.22))}
.cf-application-form .apf-input::placeholder{color:color-mix(in oklch, var(--field-ink) 65%, var(--field));opacity:1}
.cf-application-form .apf-input:hover{border-color:var(--field-focus, var(--accent))}
.cf-application-form .apf-input:focus{outline:none;border-color:var(--field-focus, var(--accent));box-shadow:0 0 0 4px oklch(from var(--field-focus, var(--accent)) l c h / 0.2)}
.cf-application-form .apf-input[aria-invalid='true']{border-color:var(--danger);background:var(--field)}
.cf-application-form .apf-input[aria-invalid='true']:focus{box-shadow:0 0 0 4px var(--danger-soft)}
.cf-application-form .apf-input:disabled{opacity:1;cursor:not-allowed}
.cf-application-form .apf-help{font-size:.9375rem;line-height:1.45;color:var(--apf-muted);text-wrap:pretty}
.cf-application-form .apf-error{display:flex;align-items:flex-start;gap:.45rem;font-size:.9375rem;font-weight:700;line-height:1.4;color:var(--apf-bad)}
.cf-application-form .apf-error svg{flex:none;width:1.1rem;height:1.1rem;margin-top:.1rem}
.cf-application-form .apf-fieldset{min-width:0;display:grid;gap:.75rem;padding:.6rem 1rem 1.1rem;border:1.5px solid var(--apf-line);border-radius:14px;background:var(--apf-card)}
.cf-application-form .apf-fieldset.is-invalid{border-color:var(--apf-bad)}
.cf-application-form .apf-legend{padding:0 .4rem;margin-left:-.4rem;text-wrap:balance}
.cf-application-form .apf-choices{display:grid;gap:.6rem}
.cf-application-form .apf-choice{position:relative;display:flex;align-items:center;gap:.85rem;min-height:3.4rem;padding:.75rem 1rem;border-radius:var(--field-radius, var(--radius,12px));border:1.5px solid var(--field-border, oklch(from var(--ink) l c h / 0.22));background:var(--apf-field);color:var(--apf-field-ink);font-size:1.03rem;font-weight:600;line-height:1.35;cursor:pointer;text-wrap:pretty;box-shadow:inset 0 -2px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35);transition:border-color .15s,background-color .15s,box-shadow .15s,transform .15s;border-color:var(--field-border, oklch(from var(--ink) l c h / 0.22))}
.cf-application-form .apf-choice input{accent-color:var(--success,var(--field-focus));position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none;accent-color:var(--success)}
.cf-application-form .apf-choice:hover{border-color:oklch(from var(--field-ink,var(--ink)) l c h / 0.55);box-shadow:inset 0 -2px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21);transform:translateY(-1px)}
.cf-application-form .apf-choice:active{transform:scale(.99)}
.cf-application-form .apf-choice:has(input:checked){border-color:var(--success);background:var(--success-soft);box-shadow:0 0 0 3px var(--success-soft);color:var(--ink)}
.cf-application-form .apf-choice:has(input:focus-visible){outline:3px solid var(--field-focus, var(--accent));outline-offset:2px}
.cf-application-form .apf-fieldset:disabled .apf-choice{opacity:1;cursor:not-allowed;border-radius:var(--field-radius, var(--radius,12px));border-color:var(--field-border, oklch(from var(--ink) l c h / 0.22))}
.cf-application-form .apf-radio{flex:none;display:grid;place-items:center;width:1.35rem;height:1.35rem;border-radius:999px;border:2px solid var(--field-focus, var(--accent));background:var(--field);transition:border-color .15s;border-color:var(--field-border, oklch(from var(--ink) l c h / 0.22))}
.cf-application-form .apf-radio::after{content:'';width:.65rem;height:.65rem;border-radius:999px;background:var(--success);transform:scale(0);transition:transform .18s cubic-bezier(.2,.8,.2,1.4)}
.cf-application-form .apf-choice:has(input:checked) .apf-radio{border-color:var(--success);background:var(--card)}
.cf-application-form .apf-choice:has(input:checked) .apf-radio::after{transform:scale(1);background:var(--success)}
.cf-application-form .apf-review{display:grid;gap:.85rem}
.cf-application-form .apf-rgroup{padding:1rem 1.1rem;border-radius:var(--card-radius, var(--radius,20px));border:1px solid var(--apf-line);background:var(--apf-soft);box-shadow:var(--card-shadow, none)}
.cf-application-form .apf-rhead{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.cf-application-form .apf-rhead h4{font-size:1.06rem;font-weight:800;color:var(--apf-ink)}
.cf-application-form .apf-edit{display:inline-flex;align-items:center;gap:.35rem;min-height:2.6rem;padding:0 .85rem;border-radius:var(--button-radius, var(--radius, 12px));border:1px solid var(--field-border, oklch(from var(--ink) l c h / 0.22));background:var(--button-2-bg, var(--secondary, oklch(0.93 0.01 260)));color:var(--button-2-ink, var(--secondary-ink, var(--ink)));font:inherit;font-size:.9375rem;font-weight:700;cursor:pointer;transition:border-color .15s,background-color .15s;border-color:var(--button-2-border, transparent);box-shadow:var(--button-2-shadow, var(--shadow-sm))}
.cf-application-form .apf-edit:hover{border-color:var(--button-2-border, transparent);background:oklch(from var(--button-2-bg, var(--secondary, oklch(0.93 0.01 260))) calc(l - 0.03) c h)}
.cf-application-form .apf-edit:focus-visible{outline:3px solid oklch(from var(--ink) l c h / 0.55);outline-offset:2px}
.cf-application-form .apf-edit svg{width:1rem;height:1rem}
.cf-application-form .apf-dl{margin-top:.6rem;display:grid;gap:.6rem}
.cf-application-form .apf-row{display:grid;gap:.15rem}
.cf-application-form .apf-row dt{font-size:.9375rem;font-weight:600;color:var(--apf-muted)}
.cf-application-form .apf-row dd{font-size:1.06rem;font-weight:700;color:var(--apf-ink);overflow-wrap:anywhere}
.cf-application-form .apf-row dd.is-empty{font-weight:500;color:var(--apf-muted)}
.cf-application-form .apf-actions{margin-top:1.5rem;display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem}
.cf-application-form .apf-actions.has-back{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
@media (max-width:519px){.cf-application-form .apf-actions.has-back{grid-template-columns:minmax(0,1fr)}.cf-application-form .apf-actions .apf-btn-primary{order:-1}}
.cf-application-form .apf-btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:3.75rem;padding:.8rem 1.25rem;border-radius:var(--button-radius, var(--radius, 12px));font:inherit;line-height:1.15;text-align:center;text-decoration:none;cursor:pointer;transition:transform .16s,box-shadow .16s,filter .16s,background-color .16s,border-color .16s}
.cf-application-form .apf-btn svg{flex:none;width:1.3rem;height:1.3rem;transition:transform .16s}
.cf-application-form .apf-btn-primary{border:1px solid var(--apf-cta-2);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)));color:var(--button-ink, var(--cta-ink));text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6),inset 0 -3px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21));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);filter:none;font:var(--button-weight, 800) 1.22rem/1.15 var(--button-font, var(--font-display));}
.cf-application-form .apf-btn-primary:hover{transform:translateY(-2px);filter:none;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6),inset 0 -3px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21))}
.cf-application-form .apf-btn-primary:active{transform:translateY(1px);filter:none;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / 0.6),inset 0 -3px 0 oklch(from var(--card) calc(l - 0.12) c h / 0.35),0 3px 6px -1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.21))}
.cf-application-form .apf-btn-primary:disabled{cursor:progress;filter:none;transform:none}
.cf-application-form .apf-btn:focus-visible{outline:3px solid oklch(from var(--ink) l c h / 0.65);outline-offset:3px}
.cf-application-form .apf-btn-secondary{border:1.5px solid var(--field-border, oklch(from var(--ink) l c h / 0.22));background:var(--button-2-bg, var(--secondary, oklch(0.93 0.01 260)));color:var(--button-2-ink, var(--secondary-ink, var(--ink)));font-size:1.06rem;font-weight:800;box-shadow:var(--button-2-shadow, var(--shadow-sm));border-color:var(--button-2-border, transparent);border-radius:var(--button-radius, var(--radius, 12px))}
.cf-application-form .apf-btn-secondary:hover{background:oklch(from var(--button-2-bg, var(--secondary, oklch(0.93 0.01 260))) calc(l - 0.03) c h);border-color:var(--button-2-border, transparent)}
.cf-application-form .apf-btn-secondary:active{transform:translateY(1px);box-shadow:var(--button-shadow,inset 0 1px 3px oklch(from var(--card) calc(l - 0.12) c h / 0.35))}
.cf-application-form .apf-btn-secondary:disabled{opacity:1;cursor:not-allowed}
.cf-application-form .apf-spin{animation:apf-spin .9s linear infinite}
@keyframes apf-spin{to{transform:rotate(360deg)}}
.cf-application-form .apf-alert{margin-top:1rem;display:flex;align-items:flex-start;gap:.65rem;padding:.85rem 1rem;border-radius:12px;border:1px solid var(--danger);background:var(--danger-soft);color:var(--danger);font-size:1rem;font-weight:600;line-height:1.45}
.cf-application-form .apf-alert svg{flex:none;width:1.2rem;height:1.2rem;margin-top:.12rem}
.cf-application-form .apf-after{margin-top:1.1rem;display:flex;align-items:flex-start;gap:.8rem;padding:.9rem 1rem;border-radius:var(--card-radius, var(--radius,20px));border:1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));background:var(--apf-soft);box-shadow:var(--card-shadow, none)}
.cf-application-form .apf-after-ico{flex:none;display:grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:999px;background:var(--success);color:var(--card);box-shadow:none}
.cf-application-form .apf-after-ico svg{width:1.15rem;height:1.15rem;color:var(--card)}
.cf-application-form .apf-after strong{display:block;font-size:1rem;font-weight:800;line-height:1.35;color:var(--apf-ink);text-wrap:pretty}
.cf-application-form .apf-after span{display:block;margin-top:.15rem;font-size:.9375rem;line-height:1.45;color:var(--apf-muted)}
@media (prefers-reduced-motion:reduce){.cf-application-form *,.cf-application-form *::before,.cf-application-form *::after,.cf-application-form .apf-bar span,.cf-application-form .apf-tab,.cf-application-form .apf-panel,.cf-application-form .apf-input,.cf-application-form .apf-choice,.cf-application-form .apf-radio,.cf-application-form .apf-radio::after,.cf-application-form .apf-edit,.cf-application-form .apf-btn,.cf-application-form .apf-btn svg,.cf-application-form .apf-spin{transition-duration:.01ms;animation:none}}
`
pieces/forms/application-form/specimen.tsx 104 lines
import __studioImageb0cee260 from "../assets/b597b588a28d78c6.webp";
import * as React from "react"
import {
ApplicationForm,
type ApplicationStep,
} from "../application-form"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
export const states = ["default", "error"]
const sample = defaults.sample
const workshop = sample.registration
const SHAPING = "I’m still shaping my offer"
const PLANNING = "I have an offer and need a clear plan"
const CHECKING = "I’m checking my funnel before launch"
const steps: ApplicationStep[] = [
{
title: "About you",
fields: [
{
name: "name",
label: "Full name",
placeholder: "Your full name",
autoComplete: "name",
},
{
name: "email",
label: "Email address",
kind: "email",
placeholder: "you@example.com",
autoComplete: "email",
description: workshop.privacy,
},
],
},
{
title: "Your funnel",
fields: [
{
name: "stage",
label: "Where are you with your first funnel?",
kind: "choice",
options: [SHAPING, PLANNING, CHECKING],
},
{
name: "goal",
label: "What will your funnel sell?",
placeholder: "e.g. A sourdough course",
description: "One line is plenty.",
required: false,
},
],
},
]
export default function ApplicationFormSpecimen({ state = "default" }: { state?: string }) {
const preview = state === "error" ? state : "default"
const initialValues = { name: "Alex Rivera", email: "alex@example.com" }
return (
<ApplicationForm
key={preview}
state={preview}
initialStep={1}
initialValues={initialValues}
title={sample.headline}
highlight="a clear plan"
lead="Tell us where you are with your first funnel."
chips={["Clear offer", "Ready to write", "Planning to launch"]}
fitLead="For people ready to plan their funnel, draft their page copy, and check every step before launch."
forItems={[
"You have an offer, or a clear idea for one",
"You want to map the pages your funnel needs",
"You’ll write your own headline, offer and call to action",
]}
notForItems={[
"You want someone to build the whole funnel for you",
"You’re looking for promises about income",
]}
process={[
{
title: "Share your starting point",
detail: "Two quick steps: who you are and where your funnel stands.",
},
{
title: "Review your fit",
detail: "Check every answer before you send. Edit anything in one click.",
},
{
title: "Get your next step",
detail: "Send your answers and go to the one next step that fits.",
},
]}
processNote={`Your next step may be ${sample.name}, the ${workshop.name}, or the waitlist. No promises about timing or availability.`}
steps={steps}
sendErrorText={workshop.error}
sceneImage={slot("scene", __studioImageb0cee260)}
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalApplicationForm |
Partial<ApplicationFormCopy> |
|
onSubmit OptionalApplicationForm |
(values: Record<string, string>) => ApplicationResultState | Promise<ApplicationResultState> | void | Promise<void> |
|
state OptionalApplicationForm |
"default" | "error" | "success" |
Default previewState ?? "default"
|
title RequiredApplicationForm |
string |
|
highlight OptionalApplicationForm |
string |
|
lead OptionalApplicationForm |
React.ReactNode |
|
chips OptionalApplicationForm |
string[] |
|
fitTitle OptionalApplicationForm |
string |
Default "Is this the right fit for you?"
|
fitLead OptionalApplicationForm |
React.ReactNode |
|
forLabel OptionalApplicationForm |
string |
Default "This is for you if"
|
forItems RequiredApplicationForm |
string[] |
|
notForLabel OptionalApplicationForm |
string |
Default "Not a fit if"
|
notForItems OptionalApplicationForm |
string[] |
|
processLabel OptionalApplicationForm |
string |
Default "How your application works"
|
process OptionalApplicationForm |
{ title: string; detail?: string }[] |
|
processNote OptionalApplicationForm |
React.ReactNode |
|
formTitle OptionalApplicationForm |
string |
Default "Your application"
|
steps RequiredApplicationForm |
ApplicationStep[] |
|
reviewLabel OptionalApplicationForm |
string |
Default "Review"
|
nextLabel OptionalApplicationForm |
string |
Default "Continue"
|
backLabel OptionalApplicationForm |
string |
Default "Back"
|
submitLabel OptionalApplicationForm |
string |
Default "Send My Application"
|
sendingLabel OptionalApplicationForm |
string |
Default "Sending…"
|
sentLabel OptionalApplicationForm |
string |
|
afterSendTitle OptionalApplicationForm |
string |
Default "After you send, you’ll go to your next step."
|
afterSendNote OptionalApplicationForm |
string |
Default "Your answers are saved with your application."
|
sendErrorText OptionalApplicationForm |
string |
Default "We couldn’t send your application. Please try again."
|
decide OptionalApplicationForm |
(
values: Record<string, string>
) => ApplicationResultState | Promise<ApplicationResultState> | void | Promise<void> |
|
outcomes OptionalApplicationForm |
{
qualified: ApplicationOutcome
alternate?: ApplicationOutcome
waitlist?: ApplicationOutcome
} |
|
sceneImage OptionalApplicationForm |
string |
|
initialStep OptionalApplicationForm |
number |
Default 0
|
initialValues OptionalApplicationForm |
Record<string, string> |
|
previewState OptionalApplicationForm |
"default" | "error" | "success" |
|
previewResult OptionalApplicationForm |
ApplicationResultState |
|
className OptionalApplicationForm |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--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.
scene- A wide atmosphere photo behind or beside the copy.
-
b597b588a28d78c6.webp
image/webp · 77.7 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB