Usage
import { CtaBand } from './CtaBand.jsx'
// Without onSubmit the email is "sent" after a short wait. Resolve false (or a sentence) when it fails:
<CtaBand
locale="en"
people={[{ id: 'a', name: 'Mara Lind' }]}
rating={4.8}
onSubmit={async (email) => (await startTrial(email)).ok}
/>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
locale | 'en' | 'zh-CN' | 'es' | 'ja' | 'en' | Language of the built-in text. |
onSubmit | (email) => Promise<boolean | string | void> | — | Sends the email. Resolve false (or a sentence) to say it failed under the field; otherwise the form shows the check. |
people | Array<{ id, name, src? }> | sample people | The faces of the trust line; four show, the rest are counted. |
points | string[] | sample points | Short promises ticked under the sentence. An empty array hides them. |
rating | number | 4.8 | The rating out of 5 shown in stars. |
defaultEmail | string | '' | The email the field starts with. |
error | boolean | string | false | Shows a failed send under the field; a string replaces its sentence. Without onSubmit, sends keep failing while it is set. |
product | string | 'Halden' (sample) | The product’s name, used in the trust line (“Teams on …”). |
labels | object | — | Replaces any built-in text (keys as in copy.js). |
className | string | — | Added to the root section. |
Add it to your project
Copy the prompt into Codex or Claude Code. The agent reads the published source, shows you what it will write and adds the block together with the components it is built from.
CtaBand.jsxcta-band.csscopy.jskit.jsxkit.cssui/base-button/ui/avatar-group/ui/success-check/ui/rating-stars/ui/text-input/tokens.cssREADME.md
The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.