CTA Form
Step Form CTA
NewA contact form that asks one question at a time in large type: name, e-mail, phone and message, with Back and Next to move between them.
npx motionsnack add step-form-ctaCustomize
<StepFormCta />Props
28 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 under the form. Leave empty to hide it. | |
| phone | string | '+1 555 012 345' | Phone shown as a link under the form. Leave empty to hide it. |
| nameLabel | string | 'Your name' | Question of the name step. |
| emailLabel | string | 'E-mail' | Question of the e-mail step. |
| phoneLabel | string | 'Phone' | Question of the phone step. |
| messageLabel | string | 'What are you planning?' | Question of the message step. |
| namePlaceholder | string | 'Jane Cooper' | Hint inside the empty name field. Leave empty for none. |
| emailPlaceholder | string | 'jane@company.com' | Hint inside the empty e-mail field. Leave empty for none. |
| phonePlaceholder | string | '+1 555 000 000' | Hint inside the empty phone field. Leave empty for none. |
| messagePlaceholder | string | 'A new website for our studio, ready by spring...' | Hint inside the empty message field. Leave empty for none. |
| phoneRequired | boolean | false | Ask for the phone number before moving on. Off lets the visitor skip it. |
| backLabel | string | 'Back' | Text of the button that goes back a question. Leave empty for an arrow alone. |
| nextLabel | string | 'Next' | Text of the button that moves on to the next question. |
| submitLabel | string | 'Send message' | Text of the submit button on the last step. |
| sendingLabel | string | 'Sending' | Button text while the message is on its way. |
| sentLabel | string | 'Message sent' | Big line shown once the message has arrived. |
| errorLabel | string | 'Something went wrong. Please try again or write to us directly.' | Line under the form when sending failed. |
| note | string | 'We use your details only to reply to you.' | Small note under the form. 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 progress, the underline and the tick. |
| resetAfter | number | 6 | Seconds the thank-you stays before the form starts again. 0 keeps it. |
| reveal | boolean | true | Let the copy and the card rise in when the section scrolls into view. |
| background | string | '#000000' | Section background. |
About Step Form CTA
A closing contact section that turns the form into a short conversation. Under a headline and a paragraph it asks one question at a time, in large type on a single underline that grows as you type, with a quiet sample answer in the empty field: name, e-mail, phone, message. Next or Enter moves on and the next question fades in where the last one was; Back brings the previous one back, answer and all. Four segments at the top fill with the answers. A wrong or missing answer shakes the field and turns the line red. On the last step the button sends the message, and a large tick draws itself in a popping circle; after a few seconds the form starts again. The note and the e-mail and phone sit under it. The form posts JSON to any address, or calls your own function.
What's included
- One large question at a time: name, e-mail, phone, message
- Back and Next buttons, Enter to move on
- Underline and progress that grow as you type
- Shake and a red line on a wrong answer
- Big drawn tick when the message is sent
- 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