Integrations
BlueForm renders no UI. You connect your UI kit with small adapters: an adapter is a React component that calls useField() and renders one of your kit's inputs (the Guide calls it a field component). The config keeps the logic — rules, conditions, computed values — and its props are typed by your kit's own components.
New to BlueForm? Read the Quick start first; this page builds on it.
Connect your UI kit
Write an adapter per input type
One adapter per kind of input your forms use (text, select, checkbox…). It reads the field from useField() and hands it to your component:
- Pass the value to
onChange. Check what your component's change handler gives you — a value, a DOM event or an object — and extract the value (e.target.value,checked,e.value…). - Attach
refso the form can focus a field with an error. AdapterPropsremoves whatuseField()provides (value,onChange,label,disabled, …) from your component's props; its second argument lists the props the adapter sets itself (hereerror), so a config cannot override them.
Register them
The keys (text, select, checkbox) are the type values of your config. renderRoot draws the form itself (its layout, a submit button). array, section, inline and hidden are built-in types and need no adapter.
Write configs with your kit's props
A field's props are typed by its adapter, so each config speaks its kit's API:
A prop the component does not have, or a wrong value, is a type error (see type-checks.tsx).
Render the form
Render Form inside your kit's provider, as you would any component:
Labels are plain strings unless you add i18n: with i18nConfig.t, labels, descriptions, placeholders and error messages are translated. Use the field's description for help text (translated, read with useField().description) and pass it to the library's prop, e.g. Mantine description or MUI helperText.
Ready-made: 12 libraries
The same registration form, built with each library. Each is a starting point for a kit that works the same way:
fields.tsx: the adapters, as is.form.tsx:setupFormand the config. It importsuseTandFORM_IDfrom the docs' demo stage: use your own i18n hook and drop the formid.- Not needed in your app:
main.tsxanddocs/integrations/shared/*(language switch, header submit button, error list, payload drawer).
The demos render Form with i18nConfig (t, validationTranslation) and formOptions={{ shouldUnregister: true }}, which drops hidden fields from the payload. With arrays, read pitfall 14 before keeping shouldUnregister.
What the demo form shows
Form: renderRoot draws the title, a responsive grid and the submit button.
Validation libraries
Zod, Valibot, ArkType and Yup (1.7+) implement Standard Schema: pass them to the schema prop. For Ajv (JSON Schema) or any other react-hook-form resolver, use formOptions.resolver. With a schema, field rules are not used; set required: true on a field to show its *. See the Schema example.
Contributing: running the demos locally
In docs/, pnpm dev starts the docs and the demos (Vite, port 5180); pnpm dev:docs or pnpm dev:demos starts one of them.

