Prompt Box Hero 1
Prompt-box hero: the visitor starts by typing instead of clicking. One large field is the spotlight, with tap-to-fill example chips beneath it, so a free audit, quiz or AI tool opens with the visitor’s own words.
Use it in a prompt
Use hero/prompt-box-hero 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/prompt-box-hero.tsx. - Import it and pass your copy and images (Props tab):
import { PromptBoxHero } from "@/components/funneldna/hero/prompt-box-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/prompt-box-hero/component.tsx 351 lines
// layout: spotlight-row
// Prompt-box hero: the visitor starts by typing instead of clicking. One large field is the spotlight, with tap-to-fill example chips beneath it, so a free audit, quiz or AI tool opens with the visitor’s own words.
import React, { useEffect, useId, useRef, useState } from 'react';
import { AlertCircle, Check, Keyboard, Loader2, Lock, PenLine } from 'lucide-react';
import { Backdrop, FX_HOST } from '../fx/fx';
import lightBackdrop from '../fx/backdrops/light';
export type PromptBoxExample = {
label: string; // short chip text
fill: string; // the text the chip writes into the field when tapped
};
export type PromptBoxHeroProps = {
headline?: string;
highlight?: string; // phrase inside the headline that gets the marker stroke
leadIn?: string; // bold lead-in that opens the help line
lead?: string;
fieldLabel?: string; // accessible label for the field (visually hidden)
placeholder?: string;
examplesLabel?: string; // short label read before the example chips
examples?: PromptBoxExample[];
buttonLabel?: string;
buttonSublabel?: string; // benefit line under the label, inside the button
submittingLabel?: string;
submittingSublabel?: string;
keyHint?: string; // desktop keyboard hint in the field corner
emptyError?: string; // inline hint when the visitor sends an empty field
consent?: string; // small consent line at the foot of the block
privacyLabel?: string;
privacyHref?: string; // the privacy link shows only when this is set
backdropImage?: string; // scene slot: a soft, low-contrast photo works best
defaultValue?: string; // starting text in the field
maxLength?: number;
submitting?: boolean; // controlled sending state: field, chips and button lock while true
onSubmit?: (value: string) => void | Promise<unknown>; // receives the trimmed text; return a promise to stay locked until it settles
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error';
className?: string;
};
const DEFAULT_EXAMPLES: PromptBoxExample[] = [
{ label: 'Few enquiries', fill: 'My page gets visits but very few enquiries. What should I change first?' },
{ label: 'Unclear offer', fill: 'Is my offer clear? Tell me what a new visitor might find confusing.' },
{ label: 'Weak headline', fill: 'Can you look at my headline and tell me what it’s missing?' },
{ label: 'Price check', fill: 'Does my price make sense next to what I’m offering?' },
];
export function PromptBoxHero({
headline = 'See what your page is missing',
highlight = 'is missing',
leadIn = 'Free review.',
lead = 'Paste your link or describe what you’re working on, and we’ll send back what to fix first.',
fieldLabel = 'Your link, or a few words about what you want reviewed',
placeholder = 'Paste a link, or describe what you’d like reviewed…',
examplesLabel = 'Try one:',
examples = DEFAULT_EXAMPLES,
buttonLabel = 'Start my free review',
buttonSublabel = 'No obligation',
submittingLabel = 'Sending…',
submittingSublabel = 'One moment',
keyHint = 'Press Enter to send · Shift + Enter for a new line',
emptyError = 'Add a link or a few words first, then send.',
consent = 'By sending, you agree we may contact you about your review.',
privacyLabel = 'Privacy policy',
privacyHref,
backdropImage = lightBackdrop,
defaultValue = '',
maxLength = 1000,
submitting = false,
onSubmit,
state = 'default',
className,
}: PromptBoxHeroProps) {
const uid = useId();
const fieldId = `${uid}-field`;
const msgId = `${uid}-msg`;
const [value, setValue] = useState(defaultValue);
const [error, setError] = useState(false);
const [pending, setPending] = useState(false);
const [focusTick, setFocusTick] = useState(0);
const fieldRef = useRef<HTMLTextAreaElement>(null);
const formRef = useRef<HTMLFormElement>(null);
const alive = useRef(true);
useEffect(() => {
alive.current = true;
return () => {
alive.current = false;
};
}, []);
useEffect(() => {
if (!focusTick) return;
const el = fieldRef.current;
if (!el) return;
el.focus();
const end = el.value.length;
el.setSelectionRange(end, end);
}, [focusTick]);
const busy = submitting || pending || state === 'disabled';
const showError = (error || state === 'error') && !busy;
const force = state !== 'default' ? state : undefined;
async function handleSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault();
if (busy) return;
const text = value.trim();
if (!text) {
setError(true);
fieldRef.current?.focus();
return;
}
setError(false);
if (!onSubmit) return;
setPending(true);
try {
await onSubmit(text);
} finally {
if (alive.current) setPending(false);
}
}
function handleKeyDown(e: React.KeyboardEvent<HTMLTextAreaElement>) {
if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) {
e.preventDefault();
formRef.current?.requestSubmit();
}
}
const trimmed = value.trim();
return (
<section
className={`cf-prompt-box-hero${className ? ` ${className}` : ''}`}
data-force={force}
style={FX_HOST}
>
<Backdrop src={backdropImage} treatment='scrim-light' position='center' />
<style>{CSS}</style>
<div className='pbh-inner'>
<h1 className='pbh-title pbh-rise' style={rise(0)}>
{withMarker(headline, highlight)}
</h1>
{(leadIn || lead) && (
<p className='pbh-lead pbh-rise' style={rise(1)}>
{leadIn && <strong>{leadIn}</strong>}
{leadIn && lead ? ' ' : null}
{lead}
</p>
)}
<form
ref={formRef}
className='pbh-form pbh-rise'
style={rise(2)}
onSubmit={handleSubmit}
noValidate
aria-busy={busy || undefined}
>
<div className='pbh-card' data-invalid={showError || undefined} data-busy={busy || undefined}>
<label htmlFor={fieldId} className='pbh-sr'>
{fieldLabel}
</label>
<textarea
ref={fieldRef}
id={fieldId}
name='prompt'
className='pbh-field'
rows={3}
value={value}
maxLength={maxLength}
placeholder={placeholder}
disabled={busy}
autoComplete='off'
aria-invalid={showError || undefined}
aria-describedby={showError ? msgId : undefined}
onKeyDown={handleKeyDown}
onChange={(e) => {
setValue(e.target.value);
if (error && e.target.value.trim()) setError(false);
}}
/>
<div className='pbh-bar'>
<p id={msgId} className='pbh-msg' data-kind={showError ? 'error' : 'hint'} aria-live='polite'>
{showError ? (
<span className='pbh-error'>
<AlertCircle className='pbh-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{emptyError}
</span>
) : keyHint ? (
<span className='pbh-hint'>
<Keyboard className='pbh-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{keyHint}
</span>
) : null}
</p>
<button type='submit' className='pbh-send' disabled={busy}>
<span className='pbh-send-main'>
{busy && <Loader2 className='pbh-spin' size={20} strokeWidth={2.5} aria-hidden='true' />}
{busy ? submittingLabel : buttonLabel}
</span>
{(busy ? submittingSublabel : buttonSublabel) && (
<span className='pbh-send-sub'>{busy ? submittingSublabel : buttonSublabel}</span>
)}
</button>
</div>
</div>
</form>
{examples.length > 0 && (
<div className='pbh-examples pbh-rise' style={rise(3)} role='group' aria-label={examplesLabel}>
{examplesLabel && (
<span className='pbh-try' aria-hidden='true'>
{examplesLabel}
</span>
)}
{examples.map((ex) => {
const picked = trimmed !== '' && trimmed === ex.fill.trim();
return (
<button
key={ex.label}
type='button'
className='pbh-chip'
aria-pressed={picked}
disabled={busy}
onClick={() => {
setValue(ex.fill.slice(0, maxLength));
setError(false);
setFocusTick((t) => t + 1);
}}
>
{picked ? (
<Check size={16} strokeWidth={2.5} aria-hidden='true' />
) : (
<PenLine size={16} strokeWidth={2.5} aria-hidden='true' />
)}
{ex.label}
</button>
);
})}
</div>
)}
{consent && (
<p className='pbh-consent pbh-rise' style={rise(4)}>
<Lock className='pbh-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{consent}
{privacyHref && (
<>
{' '}
<a href={privacyHref}>{privacyLabel}</a>
</>
)}
</p>
)}
</div>
</section>
);
}
export default PromptBoxHero;
function rise(i: number): React.CSSProperties {
return { '--i': i } as React.CSSProperties;
}
function withMarker(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className='pbh-mark'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
// The host always defines --shadow (a dark, band-tinted shade). Each shadow reads var(--shadow) written out in place, so every shadow colour is visibly token-driven.
const CARD_SHADOW = `var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--shadow) l c h / .22), 0 12px 24px -8px oklch(from var(--shadow) l c h / .32)))`;
const BTN_REST = `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(--shadow) l c h / .3), 0 8px 16px -6px oklch(from var(--shadow) l c h / .45)`;
const BTN_HOVER = `inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + .12) 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(--shadow) l c h / .34), 0 10px 18px -6px oklch(from var(--shadow) l c h / .55)`;
const BTN_PRESS = `inset 0 2px 3px 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 - .16) c h), 0 1px 2px oklch(from var(--shadow) l c h / .3)`;
const R = '.cf-prompt-box-hero';
const CSS = `
${R}{position:relative;isolation:isolate;overflow:hidden;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(64px,10vw,136px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
${R} .pbh-inner{position:relative;z-index:1;max-width:48rem;margin:0 auto;text-align:center}
${R} .pbh-title{margin:0 0 clamp(14px,1.6vw,22px);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,5.4vw,4.875rem);line-height:1.04;text-wrap:balance;color:var(--ink)}
${R} .pbh-mark{color:var(--ink);color:oklch(from var(--marker, #fae37c) clamp(0.2, (0.62 - l) * 100, 0.97) 0.035 h);background-image:linear-gradient(180deg,transparent 16%,var(--marker, #fae37c) 16%,var(--marker, #fae37c) 94%,transparent 94%);background-image:linear-gradient(180deg,transparent 16%,oklch(from var(--marker, #fae37c) l c h / .92) 16%,oklch(from var(--marker, #fae37c) l c h / .92) 94%,transparent 94%);padding:0 .1em;margin:0 -.04em;border-radius:.16em .32em .2em .36em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
${R} .pbh-lead{margin:0 auto 32px;max-width:38rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink);text-wrap:pretty}
${R} .pbh-lead strong{font-weight:800}
${R} .pbh-form{margin:0}
${R} .pbh-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
${R} .pbh-card{position:relative;text-align:left;background:var(--field);color:var(--field-ink);border:1px solid var(--field-border, color-mix(in oklch, var(--ink) 22%, transparent));border-radius:var(--card-radius, var(--radius, 14px));box-shadow:${CARD_SHADOW};transition:border-color .16s ease, box-shadow .16s ease}
${R} .pbh-card:hover{border-color:color-mix(in oklch, var(--field-ink) 34%, var(--field))}
${R} .pbh-card:focus-within,${R}[data-force='active'] .pbh-card{border-color:var(--field-focus, var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus, var(--accent)) l c h / .35), ${CARD_SHADOW}}
${R} .pbh-card[data-invalid]{border-color:var(--danger);box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .24), ${CARD_SHADOW}}
${R} .pbh-card[data-busy]{border-color:color-mix(in oklch, var(--field-ink) 18%, var(--field));box-shadow:${CARD_SHADOW}}
${R} .pbh-field{display:block;width:100%;box-sizing:border-box;margin:0;border:0;outline:0;resize:none;background:transparent;color:var(--field-ink);font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:400;line-height:1.5;padding:20px 22px 8px;min-height:7.5rem;max-height:18rem;field-sizing:content;overflow:auto}
${R} .pbh-field::placeholder{color:color-mix(in oklch, var(--field-ink) 65%, var(--field));opacity:1}
${R} .pbh-field:disabled{cursor:progress;color:color-mix(in oklch, var(--field-ink) 82%, var(--field))}
${R} .pbh-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px 10px 22px}
${R} .pbh-msg{margin:0;flex:1 1 auto;min-width:0;font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
${R} .pbh-hint{color:color-mix(in oklch, var(--field-ink) 68%, var(--field))}
${R} .pbh-error{color:var(--danger)}
${R} .pbh-ico{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;flex:none}
${R} .pbh-send{appearance:none;border:0;margin:0;cursor:pointer;flex:0 0 auto;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:8px 26px;box-sizing:border-box;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);color:var(--button-ink, var(--cta-ink));text-shadow:var(--button-text-shadow, none);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));box-shadow:var(--button-shadow, ${BTN_REST});transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
${R} .pbh-send:hover:not(:disabled),${R}[data-force='hover'] .pbh-send:not(:disabled){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:var(--button-shadow, ${BTN_HOVER});transform:translateY(-1px)}
${R} .pbh-send:active:not(:disabled),${R}[data-force='active'] .pbh-send:not(:disabled){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 - .08) c h));box-shadow:${BTN_PRESS};transform:translateY(1px)}
${R} .pbh-send:focus-visible{outline:3px solid oklch(from var(--field-focus, var(--accent)) l c h / .6);outline-offset:3px}
${R} .pbh-send:disabled{cursor:progress;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));transform:none}
${R} .pbh-send-main{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:clamp(1.125rem,1.4vw,1.25rem);line-height:1.15;white-space:nowrap}
${R} .pbh-send-sub{font-family:var(--font-body);font-size:.875rem;font-weight:700;line-height:1.2;white-space:nowrap;opacity:1}
${R} .pbh-spin{animation:pbh-spin .8s linear infinite}
${R} .pbh-examples{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 8px;margin-top:24px;margin-inline:min(0px, calc((100% - min(60rem, 100vw - 2 * clamp(16px,5vw,48px))) / 2))}
${R} .pbh-try{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ink);margin-inline-end:4px}
${R} .pbh-chip{appearance:none;margin:0;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px 0 14px;box-sizing:border-box;border-radius:999px;border:1px solid var(--card-border, oklch(from var(--ink) l c h / .14));background:var(--card);color:var(--ink);font-family:var(--font-body);font-size:.9375rem;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:var(--shadow-sm, 0 1px 2px oklch(from var(--shadow) l c h / .2));transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease}
${R} .pbh-chip svg{color:var(--accent);flex:none}
${R} .pbh-chip:hover:not(:disabled),${R}[data-force='hover'] .pbh-chip:first-of-type{border-color:oklch(from var(--accent) l c h / .55);box-shadow:var(--shadow-md, 0 1px 2px oklch(from var(--shadow) l c h / .22), 0 4px 10px -2px oklch(from var(--shadow) l c h / .2));transform:translateY(-1px)}
${R} .pbh-chip:active:not(:disabled),${R}[data-force='active'] .pbh-chip:first-of-type{background:color-mix(in oklch, var(--ink) 6%, var(--card));box-shadow:inset 0 1px 2px oklch(from var(--shadow) l c h / .22);transform:translateY(0)}
${R} .pbh-chip[aria-pressed='true']{background:color-mix(in oklch, var(--accent) 10%, var(--card));border-color:var(--accent)}
${R} .pbh-chip:focus-visible{outline:3px solid oklch(from var(--field-focus, var(--accent)) l c h / .6);outline-offset:2px}
${R} .pbh-chip:disabled{cursor:not-allowed;background:color-mix(in oklch, var(--ink) 4%, var(--card));color:var(--muted);box-shadow:none;transform:none}
${R} .pbh-chip:disabled svg{color:var(--muted)}
${R} .pbh-consent{margin:32px auto 0;max-width:38rem;font-size:.9375rem;line-height:1.45;font-weight:500;color:var(--ink);text-wrap:pretty}
${R} .pbh-consent a{color:var(--link, var(--accent));text-decoration:underline;text-decoration-color:oklch(from var(--link, var(--accent)) l c h / .45);text-underline-offset:.18em;font-weight:600}
${R} .pbh-consent a:hover{color:oklch(from var(--link, var(--accent)) calc(l - .08) c h);text-decoration-color:currentColor}
${R} .pbh-consent a:focus-visible{outline:3px solid oklch(from var(--field-focus, var(--accent)) l c h / .6);outline-offset:2px;border-radius:4px}
${R} .pbh-rise{animation:pbh-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i, 0) * .07s), .28s)}
@keyframes pbh-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pbh-spin{to{transform:rotate(360deg)}}
@media (pointer:coarse){${R} .pbh-msg[data-kind='hint']{display:none}}
@media (max-width:560px){
${R} .pbh-field{padding:18px 18px 8px;min-height:8.5rem}
${R} .pbh-bar{flex-direction:column;align-items:stretch;gap:10px;padding:4px 10px 10px}
${R} .pbh-msg{padding:0 8px}
${R} .pbh-msg[data-kind='hint']{display:none}
${R} .pbh-send{width:100%}
${R} .pbh-try{flex-basis:100%;margin:0 0 2px}
${R} .pbh-chip{min-height:44px;padding:0 14px 0 12px}
${R} .pbh-consent{margin-top:28px}
}
@media (prefers-reduced-motion:reduce){
${R} .pbh-rise,${R} .pbh-spin{animation:none}
${R} .pbh-card,${R} .pbh-send,${R} .pbh-chip{transition:none}
${R} .pbh-send:hover:not(:disabled),${R} .pbh-chip:hover:not(:disabled),${R}[data-force='hover'] .pbh-send:not(:disabled),${R}[data-force='hover'] .pbh-chip:first-of-type{transform:none}
}
`;
pieces/hero/prompt-box-hero/specimen.tsx 42 lines
import __studioImagee6a37c38 from "../assets/a59c0e041089cd5e.webp";
import { PromptBoxHero } from '../prompt-box-hero';
import defaults from '../../studio-defaults.json';
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled' | 'error';
export const states = ['default', 'hover', 'active', 'disabled', 'error'];
const filled = 'example.com/listings/14-alder-lane. Listed six weeks ago, only two showings so far. Is it the photos or the price?';
export default function PromptBoxHeroSpecimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<PromptBoxHero
key={state}
state={state}
headline='See what your listing is missing'
highlight='is missing'
leadIn='Free listing review.'
lead='Paste your listing link or describe your home, and a Keyhouse Realty agent sends back what to fix first.'
fieldLabel='Your listing link, or a few words about your home'
placeholder='Paste your listing link, or tell us about your home…'
examplesLabel='Try one:'
examples={[
{ label: 'Dark photos', fill: 'My listing photos look dark and cramped. Which ones should I reshoot first?' },
{ label: 'Price check', fill: 'Is my asking price in line with similar homes nearby?' },
{ label: 'Weak description', fill: 'Can you tighten my listing description so more buyers book a showing?' },
{ label: 'Few showings', fill: 'My home has been listed for weeks with very few showings. What is putting buyers off?' },
]}
buttonLabel='Review my listing'
buttonSublabel='Free · no obligation'
submittingLabel='Sending…'
submittingSublabel='One moment'
keyHint='Press Enter to send · Shift + Enter for a new line'
emptyError='Add your listing link or a few words about your home first.'
consent={`By sending, you agree Keyhouse Realty may contact you about your review. ${defaults.sample.registration.privacy}`}
privacyLabel='Privacy policy'
privacyHref='#privacy'
backdropImage={__studioImagee6a37c38}
defaultValue={state === 'disabled' || state === 'active' ? filled : ''}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalPromptBoxHero |
string |
Default 'See what your page is missing'
|
highlight OptionalPromptBoxHero |
string |
Default 'is missing'
|
leadIn OptionalPromptBoxHero |
string |
Default 'Free review.'
|
lead OptionalPromptBoxHero |
string |
Default 'Paste your link or describe what you’re working on, and we’ll send back what to fix first.'
|
fieldLabel OptionalPromptBoxHero |
string |
Default 'Your link, or a few words about what you want reviewed'
|
placeholder OptionalPromptBoxHero |
string |
Default 'Paste a link, or describe what you’d like reviewed…'
|
examplesLabel OptionalPromptBoxHero |
string |
Default 'Try one:'
|
examples OptionalPromptBoxHero |
PromptBoxExample[] |
Default DEFAULT_EXAMPLES
|
buttonLabel OptionalPromptBoxHero |
string |
Default 'Start my free review'
|
buttonSublabel OptionalPromptBoxHero |
string |
Default 'No obligation'
|
submittingLabel OptionalPromptBoxHero |
string |
Default 'Sending…'
|
submittingSublabel OptionalPromptBoxHero |
string |
Default 'One moment'
|
keyHint OptionalPromptBoxHero |
string |
Default 'Press Enter to send · Shift + Enter for a new line'
|
emptyError OptionalPromptBoxHero |
string |
Default 'Add a link or a few words first, then send.'
|
consent OptionalPromptBoxHero |
string |
Default 'By sending, you agree we may contact you about your review.'
|
privacyLabel OptionalPromptBoxHero |
string |
Default 'Privacy policy'
|
privacyHref OptionalPromptBoxHero |
string |
|
backdropImage OptionalPromptBoxHero |
string |
Default lightBackdrop
|
defaultValue OptionalPromptBoxHero |
string |
Default ''
|
maxLength OptionalPromptBoxHero |
number |
Default 1000
|
submitting OptionalPromptBoxHero |
boolean |
Default false
|
onSubmit OptionalPromptBoxHero |
(value: string) => void | Promise<unknown> |
|
state OptionalPromptBoxHero |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
Default 'default'
|
className OptionalPromptBoxHero |
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- 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.
This piece reads no image slots.
-
a59c0e041089cd5e.webp
image/webp · 47.2 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f6dd01ecec4a2c0e.webp
image/webp · 105 KB