Video Opt-in 1
Video squeeze hero: a short promise over a framed video that sells the freebie, with the opt-in card overlapping the frame as the one next step.
Use it in a prompt
Use hero/video-optin 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/hero/video-optin.tsx. - Import it and pass your copy and images (Props tab):
import { VideoOptin } from "@/components/funneldna/hero/video-optin"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/video-optin/component.tsx 401 lines
// layout: photo-overlap-card
// Video squeeze hero: a short promise over a framed video that sells the freebie, with the opt-in card overlapping the frame as the one next step.
import * as React from "react";
import { AlertCircle, Loader2, Lock, Play } from "lucide-react";
export type VideoOptinValues = { name: string; email: string };
export type VideoOptinCopy = {
nameLabel: string;
namePlaceholder: string;
emailLabel: string;
emailPlaceholder: string;
nameRequired: string;
emailRequired: string;
emailInvalid: string;
/** Lead-in before the P.S. line. */
psLead: string;
};
export type VideoOptinProps = {
/** Short promise. Rendered as the page's h1 (this hero is the first screen). */
headline?: string;
/** Phrase inside the headline drawn with one marker stroke. */
highlight?: string;
/** Optional one-line pre-headline (40 characters or fewer). Empty by default. */
preheadline?: string;
lead?: string;
/** Video poster photo (scene slot). */
sceneImage?: string;
sceneImageAlt?: string;
/** The page's real video embed; it replaces the cover once the visitor presses play. */
video?: React.ReactNode;
/** Label on the play cover. */
playLabel?: string;
/** The card's question; the button answers it. */
question?: string;
label?: string;
/** One reassurance line under the button. */
sublabel?: string;
pendingLabel?: string;
privacy?: string;
/** P.S. line under the action, restating the main benefit. */
ps?: string;
/** Ask for a name as well as the email. */
askName?: boolean;
/** Field labels, placeholders, validation messages and the P.S. lead-in. */
copy?: Partial<VideoOptinCopy>;
/** Form-level error from the builder (for example a failed registration). */
error?: string;
/** Called with validated values. Return a promise to show the pending label. */
onSubmit?: (values: VideoOptinValues) => void | Promise<void>;
/** Called when the visitor presses play on the cover. */
onPlay?: () => void;
state?: "default" | "hover" | "active" | "disabled" | "error";
className?: string;
};
const DEFAULT_COPY: VideoOptinCopy = {
nameLabel: "Full name",
namePlaceholder: "Jane Smith",
emailLabel: "Email address",
emailPlaceholder: "you@example.com",
nameRequired: "Please enter your name so we know who to save the seat for.",
emailRequired: "Please enter your email address.",
emailInvalid: "That email looks incomplete. Check it and try again.",
psLead: "P.S.",
};
const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
type Errors = Partial<Record<keyof VideoOptinValues, string>>;
export function VideoOptin(props: VideoOptinProps) {
const {
headline = "Map out your first funnel",
highlight = "first funnel",
preheadline = "",
lead = "Join the Funnel Starter Workshop and walk through your offer, page copy, and next steps.",
sceneImage,
sceneImageAlt = "Preview of the workshop video",
video,
playLabel = "Watch the workshop preview",
question = "Ready to walk through your offer and page copy?",
label = "Yes! Save My Seat",
sublabel = "Free workshop · Watch online",
pendingLabel = "Saving your seat…",
privacy = "We respect your inbox. Unsubscribe anytime.",
ps = "It’s free and on demand. Press play tonight and walk through your offer, page copy and next steps at your own pace.",
askName = true,
copy,
error,
onSubmit,
onPlay,
state = "default",
className,
} = props;
const c = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const disabled = state === "disabled";
const [values, setValues] = React.useState<VideoOptinValues>({ name: "", email: "" });
const [errors, setErrors] = React.useState<Errors>({});
const [pending, setPending] = React.useState(false);
const [playing, setPlaying] = React.useState(false);
const nameRef = React.useRef<HTMLInputElement>(null);
const emailRef = React.useRef<HTMLInputElement>(null);
const alive = React.useRef(true);
React.useEffect(() => {
alive.current = true;
return () => {
alive.current = false;
};
}, []);
React.useEffect(() => {
setErrors(
state === "error"
? { ...(askName ? { name: c.nameRequired } : {}), email: c.emailRequired }
: {},
);
}, [state, askName]);
function validate(v: VideoOptinValues): Errors {
const next: Errors = {};
if (askName && !v.name.trim()) next.name = c.nameRequired;
const email = v.email.trim();
if (!email) next.email = c.emailRequired;
else if (!EMAIL.test(email)) next.email = c.emailInvalid;
return next;
}
const update = (field: keyof VideoOptinValues) => (event: React.ChangeEvent<HTMLInputElement>) => {
const value = event.target.value;
setValues((v) => ({ ...v, [field]: value }));
setErrors((er) => (er[field] ? { ...er, [field]: undefined } : er));
};
async function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault();
if (disabled || pending) return;
const next = validate(values);
setErrors(next);
if (next.name) {
nameRef.current?.focus();
return;
}
if (next.email) {
emailRef.current?.focus();
return;
}
if (!onSubmit) return;
setPending(true);
try {
await onSubmit({ name: values.name.trim(), email: values.email.trim() });
} finally {
if (alive.current) setPending(false);
}
}
function handlePlay() {
if (video) setPlaying(true);
onPlay?.();
}
const btnClass = [
"cf-video-optin__btn",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
]
.filter(Boolean)
.join(" ");
return (
<div className={["cf-video-optin", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
<header className="cf-video-optin__head cf-video-optin__rise">
{preheadline ? <p className="cf-video-optin__pre">{preheadline}</p> : null}
<h1 className="cf-video-optin__title">{marked(headline, highlight)}</h1>
{lead ? <p className="cf-video-optin__lead">{lead}</p> : null}
</header>
<div className="cf-video-optin__frame cf-video-optin__rise cf-video-optin__rise--2">
<div className="cf-video-optin__screen">
{playing && video ? (
<div className="cf-video-optin__embed">{video}</div>
) : (
<button type="button" className="cf-video-optin__cover" onClick={handlePlay} aria-label={playLabel}>
{sceneImage ? (
<img className="cf-video-optin__poster" src={sceneImage} alt={sceneImageAlt} width={1600} height={900} />
) : null}
<span className="cf-video-optin__play" aria-hidden="true">
<span className="cf-video-optin__disc">
<Play size={22} strokeWidth={2.5} fill="currentColor" />
</span>
<span className="cf-video-optin__playlabel">{playLabel}</span>
</span>
</button>
)}
</div>
</div>
<form
className="cf-video-optin__card cf-video-optin__rise cf-video-optin__rise--3"
onSubmit={handleSubmit}
noValidate
aria-labelledby={`${uid}-q`}
>
<h2 id={`${uid}-q`} className="cf-video-optin__q">
{question}
</h2>
<fieldset className="cf-video-optin__fields" disabled={disabled} data-single={askName ? undefined : ""}>
{askName ? (
<Field
id={`${uid}-name`}
name="name"
type="text"
autoComplete="name"
label={c.nameLabel}
placeholder={c.namePlaceholder}
value={values.name}
error={errors.name}
onChange={update("name")}
inputRef={nameRef}
/>
) : null}
<Field
id={`${uid}-email`}
name="email"
type="email"
autoComplete="email"
label={c.emailLabel}
placeholder={c.emailPlaceholder}
value={values.email}
error={errors.email}
onChange={update("email")}
inputRef={emailRef}
/>
</fieldset>
{error ? (
<p className="cf-video-optin__alert" role="alert">
<AlertCircle className="cf-video-optin__inline" size={16} strokeWidth={2.5} aria-hidden="true" />
{error}
</p>
) : null}
<button type="submit" className={btnClass} disabled={disabled} aria-busy={pending || undefined}>
{pending ? (
<>
<Loader2 className="cf-video-optin__spin" size={20} strokeWidth={2.5} aria-hidden="true" />
<span>{pendingLabel}</span>
</>
) : (
<span>{label}</span>
)}
</button>
{sublabel ? <p className="cf-video-optin__sub">{sublabel}</p> : null}
{privacy ? (
<p className="cf-video-optin__privacy">
<Lock className="cf-video-optin__inline" size={16} strokeWidth={2.5} aria-hidden="true" />
{privacy}
</p>
) : null}
{ps ? (
<p className="cf-video-optin__ps">
<strong>{c.psLead}</strong> {ps}
</p>
) : null}
</form>
</div>
);
}
export default VideoOptin;
// private
function marked(text: string, phrase: string): React.ReactNode {
if (!phrase) return text;
const at = text.toLowerCase().indexOf(phrase.toLowerCase());
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="cf-video-optin__mark">{text.slice(at, at + phrase.length)}</span>
{text.slice(at + phrase.length)}
</>
);
}
// private
function Field(props: {
id: string;
name: string;
type: string;
autoComplete: string;
label: string;
placeholder: string;
value: string;
error?: string;
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
inputRef: React.Ref<HTMLInputElement>;
}) {
const { id, name, type, autoComplete, label, placeholder, value, error, onChange, inputRef } = props;
const errId = `${id}-err`;
return (
<div className="cf-video-optin__field">
<label htmlFor={id} className="cf-video-optin__label">
{label}
</label>
<input
ref={inputRef}
id={id}
name={name}
type={type}
autoComplete={autoComplete}
inputMode={type === "email" ? "email" : undefined}
placeholder={placeholder}
value={value}
onChange={onChange}
aria-invalid={error ? true : undefined}
aria-describedby={error ? errId : undefined}
className="cf-video-optin__input"
/>
{error ? (
<p id={errId} className="cf-video-optin__err">
<AlertCircle className="cf-video-optin__inline" size={16} strokeWidth={2.5} aria-hidden="true" />
{error}
</p>
) : null}
</div>
);
}
const CSS = `
.cf-video-optin{--vo-overlap:clamp(32px,5.6vw,80px);--vo-bezel:clamp(5px,.7vw,8px);--vo-shadow:var(--shadow,oklch(0.22 0.03 260));box-sizing:border-box;inline-size:100%;max-inline-size:56rem;margin-inline:auto;color:var(--ink);font-family:var(--font-body);text-align:center}
.cf-video-optin *,.cf-video-optin *::before,.cf-video-optin *::after{box-sizing:border-box}
.cf-video-optin :where(h1,h2,p,fieldset){margin:0}
.cf-video-optin__pre{margin-bottom:12px;color:var(--muted);font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase}
.cf-video-optin__title{color:var(--ink);font-family:var(--font-display);font-size:clamp(2.5rem,5.4vw,4.875rem);font-weight:var(--display-weight,800);line-height:1.04;letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance}
.cf-video-optin__mark{padding-inline:.06em;margin-inline:-.03em;border-radius:.12em .24em .16em .28em;background:linear-gradient(to bottom,transparent 52%,color-mix(in oklch,var(--marker,#fae37c) 78%,transparent) 52%,color-mix(in oklch,var(--marker,#fae37c) 78%,transparent) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-video-optin__lead{max-inline-size:40rem;margin:clamp(14px,1.6vw,22px) auto 0;color:var(--muted);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-video-optin__frame{position:relative;margin-top:clamp(24px,3vw,32px);padding:var(--vo-bezel);border-radius:calc(12px + var(--vo-bezel));background:linear-gradient(oklch(from var(--band) calc(l + .07) c h),var(--band));box-shadow:inset 0 0 0 1px oklch(from var(--band-ink) l c h / .1),inset 0 1px 0 oklch(from var(--band) calc(l + .16) c h / .6),0 1px 2px oklch(from var(--vo-shadow) l c h / .3),0 14px 28px -12px oklch(from var(--vo-shadow) l c h / .45)}
.cf-video-optin__screen{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:oklch(from var(--band) calc(l - .05) c h)}
.cf-video-optin__embed,.cf-video-optin__embed :where(iframe,video){position:absolute;inset:0;inline-size:100%;block-size:100%;border:0}
.cf-video-optin__cover{position:absolute;inset:0;display:grid;place-items:center;inline-size:100%;block-size:100%;margin:0;padding:16px;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);cursor:pointer;-webkit-tap-highlight-color:transparent}
.cf-video-optin__cover::after{content:"";position:absolute;inset:0;background:oklch(from var(--band) l c h / .26);transition:background .16s ease}
.cf-video-optin__cover:hover::after{background:oklch(from var(--band) l c h / .14)}
.cf-video-optin__poster{position:absolute;inset:0;inline-size:100%;block-size:100%;object-fit:cover;object-position:50% 40%}
.cf-video-optin__play{position:relative;z-index:1;display:inline-flex;align-items:center;gap:14px;max-inline-size:100%;padding:8px 24px 8px 8px;border-radius:999px;background:var(--card);color:var(--ink);font-family:inherit;font-size:.9375rem;font-weight:inherit;line-height:1.2;text-align:left;box-shadow:inset 0 0 0 1px oklch(from var(--ink) l c h / .08),0 1px 2px oklch(from var(--vo-shadow) l c h / .35),0 10px 20px -8px oklch(from var(--vo-shadow) l c h / .55);transition:transform .16s ease,box-shadow .16s ease}
.cf-video-optin__disc{display:grid;place-items:center;flex:none;inline-size:56px;block-size:56px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));box-shadow:inset 0 1px 0 oklch(from var(--accent-fill,var(--accent)) calc(l + .14) c h / .6),inset 0 -2px 0 oklch(from var(--accent-fill,var(--accent)) calc(l - .14) c h);transition:background .16s ease}
.cf-video-optin__disc svg{margin-inline-start:3px}
.cf-video-optin__playlabel{text-wrap:pretty}
.cf-video-optin__cover:hover .cf-video-optin__play{transform:translateY(-2px);box-shadow:0 1px 2px oklch(from var(--vo-shadow) l c h / .38),0 14px 24px -8px oklch(from var(--vo-shadow) l c h / .6)}
.cf-video-optin__cover:hover .cf-video-optin__disc{background:oklch(from var(--accent-fill,var(--accent)) calc(l - .05) c h)}
.cf-video-optin__cover:active .cf-video-optin__play{transform:translateY(0) scale(.98)}
.cf-video-optin__cover:focus-visible{outline:none}
.cf-video-optin__cover:focus-visible .cf-video-optin__play{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-video-optin__card{position:relative;z-index:1;inline-size:min(calc(100% - 2 * clamp(12px,5vw,64px)),40rem);margin:calc(-1 * var(--vo-overlap)) auto 0;padding:clamp(20px,3vw,32px);border:1px solid var(--card-border,color-mix(in oklch,var(--accent) 24%,var(--card)));border-radius:var(--card-radius,var(--radius,14px));background:var(--card);color:var(--ink);box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / .22),0 12px 24px -8px oklch(0.22 0.03 260 / .32)))}
.cf-video-optin__q{margin-bottom:20px;color:var(--ink);font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);line-height:1.15;letter-spacing:-.01em;text-transform:var(--display-case,none);text-wrap:balance}
.cf-video-optin__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-inline-size:0;padding:0;border:0;text-align:left}
.cf-video-optin__fields[data-single]{grid-template-columns:minmax(0,1fr)}
.cf-video-optin__field{display:grid;align-content:start;gap:8px;min-inline-size:0}
.cf-video-optin__label{color:var(--label-ink,var(--ink));font-size:1rem;font-weight:700;line-height:1.2}
.cf-video-optin__input{inline-size:100%;min-block-size:56px;margin:0;padding:0 16px;border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));background:var(--field);color:var(--field-ink);font-family:var(--font-body);font-size:1.0625rem;line-height:1.3;box-shadow:inset 0 1px 2px oklch(from var(--vo-shadow) l c h / .08);transition:border-color .16s ease,box-shadow .16s ease}
.cf-video-optin__input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-video-optin__input:hover:not(:disabled){border-color:color-mix(in oklch,var(--ink) 40%,transparent)}
.cf-video-optin__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 / .35)}
.cf-video-optin__input[aria-invalid="true"]{border-color:var(--danger)}
.cf-video-optin__input[aria-invalid="true"]:focus{border-color:var(--danger);box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.cf-video-optin__input:disabled{background:color-mix(in oklch,var(--ink) 5%,var(--field));cursor:not-allowed}
.cf-video-optin__err{color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-video-optin__inline{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-video-optin__alert{margin-top:16px;padding:12px 16px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;font-weight:600;line-height:1.4;text-align:left;text-wrap:pretty}
.cf-video-optin__btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;inline-size:100%;min-block-size:64px;margin-top:20px;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .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);font-weight:var(--button-weight,800);line-height:1.15;text-transform:var(--button-case,none);text-shadow:var(--button-text-shadow,none);text-wrap:balance;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--vo-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--vo-shadow) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-video-optin__btn:hover:not(:disabled),.cf-video-optin__btn.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--vo-shadow) l c h / .34),0 10px 18px -6px oklch(from var(--vo-shadow) l c h / .55)}
.cf-video-optin__btn:active:not(:disabled),.cf-video-optin__btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .05) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .18) c h),0 1px 1px oklch(from var(--vo-shadow) l c h / .3)}
.cf-video-optin__btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-video-optin__btn[aria-busy="true"]{cursor:progress}
.cf-video-optin__btn:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed}
.cf-video-optin__spin{flex:none;animation:cf-video-optin-spin .8s linear infinite}
.cf-video-optin__sub{margin-top:12px;color:var(--muted);font-size:.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-video-optin__privacy{margin-top:4px;color:var(--muted);font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.cf-video-optin__ps{max-inline-size:34rem;margin:20px auto 0;padding-top:20px;border-top:1px solid oklch(from var(--ink) l c h / .12);color:var(--ink);font-size:1.0625rem;line-height:1.5;text-wrap:pretty}
.cf-video-optin__ps strong{font-family:var(--font-display);font-weight:800}
@keyframes cf-video-optin-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-video-optin-spin{to{transform:rotate(360deg)}}
.cf-video-optin__rise{animation:cf-video-optin-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-video-optin__rise--2{animation-delay:.07s}
.cf-video-optin__rise--3{animation-delay:.14s}
@media (max-width:640px){
.cf-video-optin{--vo-overlap:24px}
.cf-video-optin__fields{grid-template-columns:minmax(0,1fr)}
.cf-video-optin__card{inline-size:calc(100% - 24px)}
.cf-video-optin__cover{padding:12px 12px calc(12px + var(--vo-overlap))}
.cf-video-optin__play{gap:10px;padding:6px 16px 6px 6px}
.cf-video-optin__disc{inline-size:44px;block-size:44px}
.cf-video-optin__btn{min-block-size:60px;padding-inline:20px}
}
@media (prefers-reduced-motion:reduce){
.cf-video-optin .cf-video-optin__rise,.cf-video-optin .cf-video-optin__spin{animation:none}
.cf-video-optin *,.cf-video-optin *::after{transition:none}
}
`;
pieces/hero/video-optin/specimen.tsx 33 lines
import __studioImagea3201d53 from "../assets/a4b740751b2e489d.webp";
import { VideoOptin } from "../video-optin";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"] as const;
type SpecimenState = (typeof states)[number];
export default function VideoOptinSpecimen({ state = "default" }: { state?: SpecimenState }) {
const registration = defaults.sample.registration;
const fields = defaults.sample.fields;
return (
<VideoOptin
state={state}
headline={registration.headline}
highlight="first funnel"
lead={registration.lead}
sceneImage={slot(
"scene",
__studioImagea3201d53,
)}
sceneImageAlt="A person at a bright desk sketching a simple funnel plan beside a laptop"
playLabel="Watch the workshop preview"
question="Ready to walk through your offer and page copy?"
label={registration.label}
sublabel={registration.sublabel}
privacy={registration.privacy}
ps="It’s free and on demand. Press play tonight and walk through your offer, page copy and next steps at your own pace."
copy={{ nameLabel: fields[0].label, emailLabel: fields[1].label }}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalVideoOptin |
string |
|
highlight OptionalVideoOptin |
string |
|
preheadline OptionalVideoOptin |
string |
|
lead OptionalVideoOptin |
string |
|
sceneImage OptionalVideoOptin |
string |
|
sceneImageAlt OptionalVideoOptin |
string |
|
video OptionalVideoOptin |
React.ReactNode |
|
playLabel OptionalVideoOptin |
string |
|
question OptionalVideoOptin |
string |
|
label OptionalVideoOptin |
string |
|
sublabel OptionalVideoOptin |
string |
|
pendingLabel OptionalVideoOptin |
string |
|
privacy OptionalVideoOptin |
string |
|
ps OptionalVideoOptin |
string |
|
askName OptionalVideoOptin |
boolean |
|
copy OptionalVideoOptin |
Partial<VideoOptinCopy> |
|
error OptionalVideoOptin |
string |
|
onSubmit OptionalVideoOptin |
(values: VideoOptinValues) => void | Promise<void> |
|
onPlay OptionalVideoOptin |
() => void |
|
state OptionalVideoOptin |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalVideoOptin |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
a4b740751b2e489d.webp
image/webp · 53.6 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB