A React form with no backend to write
One component, or a hook if you want to write all the HTML: questions, steps, conditions, validation and files are handled. You keep your components and design.
In three steps
-
Step 1 : Install the SDK: npm install @canardform/sdk.
-
Step 2 : Add the <CanardForm> component with your form’s id.
-
Step 3 : Customize with your classes, renderField or the useCanardForm hook.
import { CanardForm } from '@canardform/sdk/react';
export default function ContactForm() {
return <CanardForm formId="YOUR_FORM" />;
}
What you gain
- No API route or database to write.
- Same validation as the server, errors linked to fields.
- Accessible: labels, announced errors, focus handled between steps.
- TypeScript, React 18 and later.
Frequently asked questions
Do I need an API key or an environment variable?
No. A published form is public: the component reads it and sends answers without a key, so there is nothing to hide in your code or to set up on your host.
Can I use my own components (shadcn/ui, MUI…)?
Yes. renderField replaces a field’s rendering with your component, and the useCanardForm hook lets you write the whole form while keeping validation, conditions and submission.
What about server-side rendering?
The component doesn’t touch the DOM when it is created, so it works with server rendering. Pass it the definition read by getForm so the form is in the HTML from the start.
Your first form is 5 minutes away.
Free to start. Change plans only when you need to.