Marketing section
Call to action
shadcn addcta
detentui.com
Wire it up
All optional. With none, it plays exactly as it does here and hands over to whoever touches it.
Usage
<CTA
tickets={tickets}
product={product}
title={title}
onSubmit={(email) => {}}
/>Your data
PropDescriptionDefault
ticketsThe tickets in the queue: who, what they asked, and how it ended.
{ from, hue, text, outcome, handed? }[]Default—
productThe product’s name, on its line through the queue and in the sentence under the heading.
stringDefault
'Detent'titleThe heading, set in two tones.
[string, string]Default—
sublineOne sentence under the heading.
stringDefault—
actionThe button’s words.
stringDefault
'Start free'placeholderShown in the field while it’s empty.
stringDefault
'you@company.com'noteThe small line under the field.
stringDefault—
What it tells you
PropDescriptionDefault
onSubmitCalled with the email a person starts with. Return a promise to keep the button busy until it settles.
(email: string) => Promise<void> | voidDefault—
Every block also takes accent, the one colour everything in it derives from; autoplay, which plays the demo until someone touches it; and className.