Skip to content
English

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

PropTypeDefaultWhat 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.
peopleArray<{ id, name, src? }>sample peopleThe faces of the trust line; four show, the rest are counted.
pointsstring[]sample pointsShort promises ticked under the sentence. An empty array hides them.
ratingnumber4.8The rating out of 5 shown in stars.
defaultEmailstring''The email the field starts with.
errorboolean | stringfalseShows a failed send under the field; a string replaces its sentence. Without onSubmit, sends keep failing while it is set.
productstring'Halden' (sample)The product’s name, used in the trust line (“Teams on …”).
labelsobject—Replaces any built-in text (keys as in copy.js).
classNamestring—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.