CTA Form
Signal Form CTA
NewA contact form for a name, an e-mail, a phone and a message, with floating labels, a fill progress and a button that shows sending and sent.
npx motionsnack add signal-form-ctaCustomize
<SignalFormCta />Props
23 properties
| Property | Type | Default | Description |
|---|---|---|---|
| action | string | none | Address the form posts to, as JSON { name, email, phone, message }. Any 2xx answer counts as sent. Without action and onSubmit the form only pretends to send. |
| onSubmit | (data: { name: string; email: string; phone: string; message: string }) => void | Promise<void> | none | Your own sending. Throw or reject to show the error line. Wins over action. |
| kicker | string | 'Contact' | Small label above the headline. Leave empty to hide it. |
| title | string | 'Tell us what
you are building' | Headline. Use \n for line breaks. |
| description | string | 'A few lines are enough. We read every message ourselves and reply within one working day.' | Paragraph under the headline. Leave empty to hide it. |
| string | 'hello@studio.com' | E-mail shown as a link. Leave empty to hide it. | |
| phone | string | '+1 555 012 345' | Phone shown as a link. Leave empty to hide it. |
| nameLabel | string | 'Your name' | Label of the name field. |
| emailLabel | string | 'E-mail' | Label of the e-mail field. |
| phoneLabel | string | 'Phone' | Label of the phone field. |
| messageLabel | string | 'What are you planning?' | Label of the message field. |
| phoneRequired | boolean | false | Ask for the phone number before the form can be sent. |
| submitLabel | string | 'Send message' | Text of the submit button. |
| sendingLabel | string | 'Sending' | Button text while the message is on its way. |
| sentLabel | string | 'Message sent' | Button text once the message has arrived. |
| errorLabel | string | 'Something went wrong. Please try again or write to us directly.' | Line under the button when sending failed. |
| note | string | 'We use your details only to reply to you.' | Small note next to the button. Leave empty to hide it. |
| Button | ComponentType | built-in | Button component from the library for the filled button. Without one the section draws its own. |
| accent | string | '#461FD1' | Colour of the focus rings, the progress and the ticks. |
| glow | number | 0 | Soft glow behind the form. 0 turns it off. |
| fieldRadius | number | 16 | Corner radius of the fields. |
| reveal | boolean | true | Let the copy and the card rise in when the section scrolls into view. |
| background | string | '#000000' | Section background. |
About Signal Form CTA
A closing contact section. On the left a headline, a paragraph and the e-mail and phone as large links. On the right sits the form, straight on the section background: name and e-mail side by side, the phone and the message under them. Each field has a label that floats up when you type, a ring that grows from the middle on focus and a small tick once it is filled; four segments at the top fill as the fields do. Missing fields shake once. The button shows a spinner while sending and draws a tick when the message has arrived. The form posts JSON to any address, or calls your own function.
What's included
- Name, e-mail, phone and message fields
- Floating labels, focus rings and filled ticks
- Progress that fills with the fields
- Shake on missing fields, e-mail check
- Button with sending and sent states
- Posts JSON to `action` or calls `onSubmit`
- Light and dark look, reduced motion respected
- Type
- Animated cta form section for Next.js
- Library
- Sections · CTA Form
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-22
- Install
npx motionsnack add signal-form-cta