Loop Split Opt-in 1
Split opt-in hero: a themed looping video panel beside an editorial headline, a lead,
Use it in a prompt
Use hero/loop-split-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/loop-split-optin.tsx. - Import it and pass your copy and images (Props tab):
import { LoopSplitOptin } from "@/components/funneldna/hero/loop-split-optin"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/loop-split-optin/component.tsx 584 lines
// layout: magazine-spread
// Split opt-in hero: a themed looping video panel beside an editorial headline, a lead,
// fascination bullets and a two-field opt-in. The free guide feels real and the form sits in the first screen.
import * as React from 'react';
import { AlertCircle, Coffee, Lock } from 'lucide-react';
import { BackdropVideo, Spot, FX_HOST } from '../fx/fx';
import steamLoop from '../fx/loops/steam';
import checklist from '../fx/spots/checklist';
import clock from '../fx/spots/clock';
import chart from '../fx/spots/chart';
export type LoopSplitOptinBullet = {
// clay spot illustration that leads the bullet: a default import from ../fx/spots/<name>
spot: string;
// bold opening words of the fascination
title: string;
text?: React.ReactNode;
};
export type LoopSplitOptinValues = { firstName: string; email: string };
export type LoopSplitOptinProps = {
eyebrow?: string;
headline?: string;
// phrase inside the headline, set in the accent colour
highlight?: string;
// opening paragraph, set in normal text (no drop cap)
lead?: string;
bullets?: LoopSplitOptinBullet[];
// the question the button answers
question?: string;
firstNameLabel?: string;
firstNamePlaceholder?: string;
emailLabel?: string;
emailPlaceholder?: string;
buttonLabel?: string;
privacy?: string;
psLabel?: string;
// P.S. line under the action; empty renders nothing
ps?: string;
// small chip on the video panel; empty renders nothing
mediaCaption?: string;
// large editorial line under the video panel (desktop only); empty renders nothing
pullLine?: string;
// accessible name of the video panel
mediaLabel?: string;
errors?: { firstNameRequired?: string; emailRequired?: string; emailInvalid?: string };
// called with validated values; the page wires what happens next
onSubmit?: (values: LoopSplitOptinValues) => void;
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error';
className?: string;
};
const C = 'cf-loop-split-optin';
const DEFAULT_BULLETS: LoopSplitOptinBullet[] = [
{ spot: checklist, title: 'The page-by-page map:', text: 'every page your first funnel needs, in the order you build them.' },
{ spot: clock, title: 'Plan it in one sitting:', text: 'a short, step-by-step plan you finish before you open the builder.' },
{ spot: chart, title: 'The pre-launch check:', text: 'catch broken links and forms before your visitors do.' },
];
const DEFAULT_ERRORS = {
firstNameRequired: 'Please enter your first name.',
emailRequired: 'Please enter your email address.',
emailInvalid: 'Please enter a valid email, like you@example.com.',
};
const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
export function LoopSplitOptin(props: LoopSplitOptinProps) {
const {
eyebrow = 'Free funnel planning guide',
headline = 'Map your first funnel before you build it',
highlight = 'before you build it',
lead = 'Get the free planning guide. Map your offer and the pages your funnel needs, then build with a clear plan.',
bullets = DEFAULT_BULLETS,
question = 'Ready to map your first funnel?',
firstNameLabel = 'First name',
firstNamePlaceholder = 'Jane',
emailLabel = 'Email address',
emailPlaceholder = 'you@example.com',
buttonLabel = 'I’m ready, send my guide',
privacy = 'We respect your inbox. Unsubscribe anytime.',
psLabel = 'P.S.',
ps = 'The guide is free. Map your funnel tonight and start building with a clear plan.',
mediaCaption = 'Plan it over your morning coffee',
pullLine = 'Plan your funnel, write your page copy, and check every step before you launch.',
mediaLabel = 'Looping video of a calm planning session',
errors,
onSubmit,
state = 'default',
className,
} = props;
const copy = { ...DEFAULT_ERRORS, ...errors };
const id = React.useId();
const firstRef = React.useRef<HTMLInputElement>(null);
const emailRef = React.useRef<HTMLInputElement>(null);
const [values, setValues] = React.useState<LoopSplitOptinValues>({ firstName: '', email: '' });
const [fieldErrors, setFieldErrors] = React.useState<Partial<Record<keyof LoopSplitOptinValues, string>>>({});
const disabled = state === 'disabled';
const shown: Partial<Record<keyof LoopSplitOptinValues, string>> =
state === 'error' ? { firstName: copy.firstNameRequired, email: copy.emailInvalid } : fieldErrors;
function validate(v: LoopSplitOptinValues) {
const next: Partial<Record<keyof LoopSplitOptinValues, string>> = {};
if (!v.firstName.trim()) next.firstName = copy.firstNameRequired;
const email = v.email.trim();
if (!email) next.email = copy.emailRequired;
else if (!EMAIL.test(email)) next.email = copy.emailInvalid;
return next;
}
function update(name: keyof LoopSplitOptinValues, value: string) {
setValues((v) => ({ ...v, [name]: value }));
if (fieldErrors[name]) setFieldErrors((er) => ({ ...er, [name]: undefined }));
}
function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault();
if (disabled) return;
const next = validate(values);
setFieldErrors(next);
if (next.firstName) {
firstRef.current?.focus();
return;
}
if (next.email) {
emailRef.current?.focus();
return;
}
onSubmit?.({ firstName: values.firstName.trim(), email: values.email.trim() });
}
const btnClass = ['cf-loop-split-optin__btn', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : '']
.filter(Boolean)
.join(' ');
return (
<section className={[C, className].filter(Boolean).join(' ')} aria-labelledby={`${id}-h`}>
<style>{CSS}</style>
<div className={`${C}__grid`}>
<header className={`${C}__head ${C}__rise`}>
{eyebrow ? <p className={`${C}__eyebrow`}>{eyebrow}</p> : null}
<h1 id={`${id}-h`} className={`${C}__title`}>
{renderHeadline(headline, highlight, `${C}__em`)}
</h1>
{lead ? <p className={`${C}__lead`}>{lead}</p> : null}
</header>
{bullets.length ? (
<ul className={`${C}__bullets`}>
{bullets.map((b, i) => (
<li
key={i}
className={`${C}__bullet ${C}__rise`}
style={{ animationDelay: `${Math.min(0.07 * (i + 2), 0.28)}s` }}
>
<span className={`${C}__spot`} aria-hidden='true'>
<Spot src={b.spot} size={40} />
</span>
<span className={`${C}__btext`}>
<strong>{b.title}</strong>
{b.text ? <> {b.text}</> : null}
</span>
</li>
))}
</ul>
) : null}
<form className={`${C}__form ${C}__rise`} style={{ animationDelay: '0.07s' }} noValidate onSubmit={handleSubmit}>
{question ? <p className={`${C}__ask`}>{question}</p> : null}
<fieldset className={`${C}__fields`} disabled={disabled}>
<div className={`${C}__field`}>
<label className={`${C}__label`} htmlFor={`${id}-first`}>
{firstNameLabel}
</label>
<input
ref={firstRef}
id={`${id}-first`}
className='cf-loop-split-optin__input'
name='firstName'
type='text'
autoComplete='given-name'
placeholder={firstNamePlaceholder}
value={values.firstName}
onChange={(e) => update('firstName', e.target.value)}
aria-invalid={shown.firstName ? true : undefined}
aria-describedby={shown.firstName ? `${id}-first-err` : undefined}
required
/>
{shown.firstName ? (
<p id={`${id}-first-err`} className={`${C}__err`} aria-live='polite'>
<AlertCircle className={`${C}__inline`} size={16} strokeWidth={2.5} aria-hidden='true' />
{shown.firstName}
</p>
) : null}
</div>
<div className={`${C}__field`}>
<label className={`${C}__label`} htmlFor={`${id}-email`}>
{emailLabel}
</label>
<input
ref={emailRef}
id={`${id}-email`}
className='cf-loop-split-optin__input'
name='email'
type='email'
inputMode='email'
autoComplete='email'
placeholder={emailPlaceholder}
value={values.email}
onChange={(e) => update('email', e.target.value)}
aria-invalid={shown.email ? true : undefined}
aria-describedby={shown.email ? `${id}-email-err` : undefined}
required
/>
{shown.email ? (
<p id={`${id}-email-err`} className={`${C}__err`} aria-live='polite'>
<AlertCircle className={`${C}__inline`} size={16} strokeWidth={2.5} aria-hidden='true' />
{shown.email}
</p>
) : null}
</div>
</fieldset>
<button type='submit' className={btnClass} disabled={disabled}>
{buttonLabel}
</button>
{privacy ? (
<p className={`${C}__privacy`}>
<Lock className={`${C}__inline`} size={16} strokeWidth={2.5} aria-hidden='true' />
{privacy}
</p>
) : null}
{ps ? (
<p className={`${C}__ps`}>
<strong>{psLabel}</strong>
{ps}
</p>
) : null}
</form>
<div className={`${C}__media`}>
<figure className={`${C}__fig`} aria-label={mediaLabel}>
<div className={`${C}__panel`} style={FX_HOST}>
<BackdropVideo video={steamLoop} treatment='duotone' tone='surface' side='none' position='center' control='top-right' />
</div>
{mediaCaption ? (
<figcaption className={`${C}__cap`}>
<Coffee className={`${C}__inline ${C}__cap-icon`} size={18} strokeWidth={2.5} aria-hidden='true' />
{mediaCaption}
</figcaption>
) : null}
</figure>
{pullLine ? <p className={`${C}__pull`}>{pullLine}</p> : null}
</div>
</div>
</section>
);
}
export default LoopSplitOptin;
function renderHeadline(text: string, phrase: string | undefined, cls: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className={cls}>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-loop-split-optin {
--lso-shadow: var(--shadow, oklch(0.22 0.03 260));
position: relative;
background: var(--surface, #ffffff);
color: var(--ink, #101828);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
overflow-x: clip;
}
.cf-loop-split-optin *, .cf-loop-split-optin *::before, .cf-loop-split-optin *::after { box-sizing: border-box; }
.cf-loop-split-optin__grid {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'head' 'form' 'media' 'bullets';
row-gap: 32px;
}
.cf-loop-split-optin__head { grid-area: head; min-width: 0; }
.cf-loop-split-optin__eyebrow {
margin: 0 0 12px;
font-size: 0.875rem;
line-height: 1.2;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
}
.cf-loop-split-optin__title {
margin: 0 0 clamp(20px, 2.4vw, 32px);
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
font-size: clamp(2.5rem, 4.6vw, 4.25rem);
line-height: 1.04;
text-wrap: balance;
color: var(--ink);
}
.cf-loop-split-optin__em { color: var(--accent); }
.cf-loop-split-optin__lead {
margin: 0;
max-width: 60ch;
font-size: clamp(1.125rem, 1.5vw, 1.25rem);
line-height: 1.45;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-loop-split-optin__bullets {
grid-area: bullets;
min-width: 0;
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 16px;
}
.cf-loop-split-optin__bullet {
display: grid;
grid-template-columns: 40px minmax(0, 1fr);
column-gap: 16px;
align-items: start;
}
.cf-loop-split-optin__spot { display: block; width: 40px; height: 40px; }
.cf-loop-split-optin__btext {
padding-top: 7px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.45;
color: var(--muted);
text-wrap: pretty;
}
.cf-loop-split-optin__btext strong { color: var(--ink); font-weight: 700; }
.cf-loop-split-optin__form { grid-area: form; min-width: 0; }
.cf-loop-split-optin__ask {
margin: 0 0 16px;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15;
letter-spacing: -0.01em;
color: var(--ink);
text-wrap: balance;
}
.cf-loop-split-optin__fields {
margin: 0;
padding: 0;
border: 0;
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 16px;
}
@media (min-width: 560px) {
.cf-loop-split-optin__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cf-loop-split-optin__field { min-width: 0; display: flex; flex-direction: column; }
.cf-loop-split-optin__label {
margin: 0 0 8px;
font-size: 1rem;
line-height: 1.25;
font-weight: 700;
color: var(--label-ink, var(--ink));
}
.cf-loop-split-optin__input {
appearance: none;
width: 100%;
height: 56px;
padding: 0 16px;
font: inherit;
font-family: var(--font-body);
font-size: 1.0625rem;
color: var(--field-ink, var(--ink));
background: var(--field, #ffffff);
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(--lso-shadow) l c h / 0.08);
transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.cf-loop-split-optin__input::placeholder {
color: color-mix(in oklch, var(--field-ink, var(--ink)) 65%, var(--field, #ffffff));
opacity: 1;
}
.cf-loop-split-optin__input:hover:not(:disabled) {
border-color: color-mix(in oklch, var(--field-ink, var(--ink)) 40%, transparent);
}
.cf-loop-split-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 / 0.35);
}
.cf-loop-split-optin__input[aria-invalid='true'] { border-color: var(--danger); }
.cf-loop-split-optin__input[aria-invalid='true']:focus {
box-shadow: 0 0 0 3px oklch(from var(--danger) l c h / 0.3);
}
.cf-loop-split-optin__input:disabled {
cursor: not-allowed;
background: color-mix(in oklch, var(--field-ink, var(--ink)) 5%, var(--field, #ffffff));
}
.cf-loop-split-optin__err {
margin: 8px 0 0;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 600;
color: var(--danger);
text-wrap: pretty;
}
.cf-loop-split-optin__inline {
display: inline-block;
vertical-align: -0.15em;
margin-inline-end: 0.4em;
}
.cf-loop-split-optin__btn {
--lso-b: var(--button-bg, var(--cta));
--lso-b2: var(--button-bg-2, var(--cta-2));
appearance: none;
border: 0;
cursor: pointer;
width: 100%;
min-height: 72px;
margin-top: 20px;
padding: 0 28px;
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
border-radius: var(--button-radius, var(--radius, 12px));
font-family: var(--button-font, var(--font-display));
font-weight: var(--button-weight, 800);
text-transform: var(--button-case, none);
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
color: var(--button-ink, var(--cta-ink));
text-shadow: var(--button-text-shadow, none);
background: linear-gradient(oklch(from var(--lso-b) calc(l + 0.04) c h), oklch(from var(--lso-b2) calc(l - 0.02) c h));
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--lso-b) calc(l + 0.14) c h / 0.7),
inset 0 -3px 0 oklch(from var(--lso-b) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--lso-shadow) l c h / 0.3),
0 8px 16px -6px oklch(from var(--lso-shadow) l c h / 0.45));
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cf-loop-split-optin__btn:hover:not(:disabled),
.cf-loop-split-optin__btn.is-hover:not(:disabled) {
background: linear-gradient(oklch(from var(--lso-b) calc(l - 0.01) c h), oklch(from var(--lso-b2) calc(l - 0.07) c h));
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--lso-b) calc(l + 0.12) c h / 0.7),
inset 0 -3px 0 oklch(from var(--lso-b) calc(l - 0.2) c h),
0 1px 2px oklch(from var(--lso-shadow) l c h / 0.34),
0 10px 18px -6px oklch(from var(--lso-shadow) l c h / 0.55));
}
.cf-loop-split-optin__btn:active:not(:disabled),
.cf-loop-split-optin__btn.is-active:not(:disabled) {
transform: translateY(1px);
background: linear-gradient(oklch(from var(--lso-b) calc(l - 0.04) c h), oklch(from var(--lso-b2) calc(l - 0.08) c h));
box-shadow:
inset 0 2px 4px oklch(from var(--lso-b) calc(l - 0.22) c h / 0.5),
inset 0 -2px 0 oklch(from var(--lso-b) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--lso-shadow) l c h / 0.3);
}
.cf-loop-split-optin__btn:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--accent)) l c h / 0.55);
outline-offset: 3px;
}
.cf-loop-split-optin__btn:disabled {
cursor: not-allowed;
transform: none;
background: var(--button-2-bg, var(--secondary));
color: var(--button-2-ink, var(--secondary-ink));
box-shadow: var(--button-2-shadow, var(--shadow-sm));
text-shadow: none;
}
.cf-loop-split-optin__privacy {
margin: 12px 0 0;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 500;
color: var(--muted);
text-wrap: pretty;
}
.cf-loop-split-optin__ps {
margin: 16px 0 0;
max-width: 60ch;
font-size: 1rem;
line-height: 1.5;
color: var(--muted);
text-wrap: pretty;
}
.cf-loop-split-optin__ps strong {
margin-inline-end: 0.3em;
color: var(--ink);
font-weight: 800;
}
.cf-loop-split-optin__media {
grid-area: media;
min-width: 0;
display: flex;
flex-direction: column;
gap: 24px;
}
.cf-loop-split-optin__fig { margin: 0; min-width: 0; }
.cf-loop-split-optin__panel {
position: relative;
isolation: isolate;
overflow: hidden;
width: 100%;
aspect-ratio: 16 / 11;
border-radius: var(--radius, 12px);
background: var(--band, oklch(0.27 0.07 256));
}
.cf-loop-split-optin__cap {
margin: 12px 0 0;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 600;
color: var(--muted);
text-wrap: pretty;
}
.cf-loop-split-optin__cap-icon { color: var(--accent); }
.cf-loop-split-optin__pull {
display: none;
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight, 800);
letter-spacing: -0.015em;
font-size: clamp(1.3125rem, 1.9vw, 1.75rem);
line-height: 1.2;
color: var(--ink);
text-wrap: balance;
}
@media (min-width: 960px) {
.cf-loop-split-optin__grid {
grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
grid-template-areas: 'media head' 'media bullets' 'media form';
grid-template-rows: auto auto 1fr;
column-gap: clamp(40px, 5vw, 72px);
row-gap: 24px;
}
.cf-loop-split-optin__form { padding-top: 0; }
/* desktop: the submit button sits inside a 900px first screen */
.cf-loop-split-optin { padding-top: 56px; }
.cf-loop-split-optin__bullets { gap: 12px; }
.cf-loop-split-optin__media { align-self: start; position: sticky; top: 24px; }
.cf-loop-split-optin__panel { aspect-ratio: 5 / 6; max-height: 720px; }
.cf-loop-split-optin__pull { display: block; }
}
@keyframes cf-loop-split-optin-rise {
from { opacity: 0.82; transform: translateY(8px); }
}
.cf-loop-split-optin__rise { animation: cf-loop-split-optin-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) {
.cf-loop-split-optin__rise { animation: none; }
.cf-loop-split-optin__btn, .cf-loop-split-optin__input { transition: none; }
.cf-loop-split-optin__btn:active:not(:disabled),
.cf-loop-split-optin__btn.is-active:not(:disabled) { transform: none; }
}
`;
pieces/hero/loop-split-optin/specimen.tsx 40 lines
import * as React from 'react';
import defaults from '../../studio-defaults.json';
import { LoopSplitOptin } from '../loop-split-optin';
import checklist from '../../fx/spots/checklist';
import clock from '../../fx/spots/clock';
import chart from '../../fx/spots/chart';
export const states = ['default', 'hover', 'active', 'disabled', 'error'] as const;
type SpecimenState = (typeof states)[number];
const sample = defaults.sample;
export default function LoopSplitOptinSpecimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<LoopSplitOptin
state={state}
eyebrow='Free funnel planning guide'
headline='Map your first funnel before you build it'
highlight='before you build it'
lead={`Get the free planning guide. ${sample.items[0].detail} Then build with a clear plan.`}
bullets={[
{ spot: checklist, title: 'The page-by-page map:', text: 'every page your first funnel needs, in the order you build them.' },
{ spot: clock, title: 'Plan it in one sitting:', text: 'a short, step-by-step plan you finish before you open the builder.' },
{ spot: chart, title: 'The pre-launch check:', text: 'catch broken links and forms before your visitors do.' },
]}
question='Ready to map your first funnel?'
firstNameLabel='First name'
firstNamePlaceholder='Jane'
emailLabel={sample.fields[1].label}
emailPlaceholder='you@example.com'
buttonLabel='I’m ready, send my guide'
privacy={sample.registration.privacy}
psLabel='P.S.'
ps='The guide is free. Map your funnel tonight and start building with a clear plan.'
mediaCaption='Plan it over your morning coffee'
pullLine={sample.lead}
/>
);
}
| Name | Type | Details |
|---|---|---|
eyebrow OptionalLoopSplitOptin |
string |
|
headline OptionalLoopSplitOptin |
string |
|
highlight OptionalLoopSplitOptin |
string |
|
lead OptionalLoopSplitOptin |
string |
|
bullets OptionalLoopSplitOptin |
LoopSplitOptinBullet[] |
|
question OptionalLoopSplitOptin |
string |
|
firstNameLabel OptionalLoopSplitOptin |
string |
|
firstNamePlaceholder OptionalLoopSplitOptin |
string |
|
emailLabel OptionalLoopSplitOptin |
string |
|
emailPlaceholder OptionalLoopSplitOptin |
string |
|
buttonLabel OptionalLoopSplitOptin |
string |
|
privacy OptionalLoopSplitOptin |
string |
|
psLabel OptionalLoopSplitOptin |
string |
|
ps OptionalLoopSplitOptin |
string |
|
mediaCaption OptionalLoopSplitOptin |
string |
|
pullLine OptionalLoopSplitOptin |
string |
|
mediaLabel OptionalLoopSplitOptin |
string |
|
errors OptionalLoopSplitOptin |
{ firstNameRequired?: string; emailRequired?: string; emailInvalid?: string } |
|
onSubmit OptionalLoopSplitOptin |
(values: LoopSplitOptinValues) => void |
|
state OptionalLoopSplitOptin |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
className OptionalLoopSplitOptin |
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.
--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.
This piece reads no image slots.
-
3280957150211a63.webp
image/webp · 25.4 KB
-
369bb6f216bb84ab.webp
image/webp · 22.6 KB
- 741f8b94f6c0ae1c.webm video/webm · 168 KB
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
- e5a55080678e557b.mp4 video/mp4 · 186 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB