# React headless form > react-headless-form (BlueForm) is a config-driven, headless form engine for React built on React Hook Form (peer dependency). Call setupForm({ fieldMapping, renderRoot }) once to get a typed [Form, defineConfig, Section]; describe each form as a config object; field components read value/onChange/label/errorMessage from useField(). renderRoot is required. Read "Common pitfalls" first. ## Guide - [Introduction](https://bonniss.github.io/react-headless-form/guide/start/introduction.md): What react-headless-form (BlueForm) is: a config-driven, headless form engine on top of React Hook Form, and why it exists. - [Quick start](https://bonniss.github.io/react-headless-form/guide/start/quick-start.md): Install react-headless-form with react-hook-form, define a field component with useField, set up the form engine with setupForm, and render a typed login form. - [Common pitfalls](https://bonniss.github.io/react-headless-form/guide/start/pitfalls.md): Short checklist of the mistakes people (and LLMs) most often make with BlueForm — required renderRoot, peer dependency, rules vs resolver, submit errors, undefined initial values, i18n of props, and re-render cost of conditional fields. - [Migration and deprecations](https://bonniss.github.io/react-headless-form/guide/start/migration.md): Breaking changes and deprecated APIs across 0.x releases, and what to use instead before 1.0 removes them. - [setupForm](https://bonniss.github.io/react-headless-form/guide/core/setup-form/index.md): setupForm creates a typed form system bound to your fieldMapping and returns [Form, defineConfig, Section]; also sets renderRoot, i18nConfig and formOptions. - [\
](https://bonniss.github.io/react-headless-form/guide/core/setup-form/form.md): Props of the typed Form component returned by setupForm — submit lifecycle (onSubmit, onSubmitSuccess, onSubmitFailure, onInvalid), change hooks with debounce, ref, and the full field config reference. - [defineConfig](https://bonniss.github.io/react-headless-form/guide/core/setup-form/define-config.md): Type a config fragment against a model for nested sections and reuse, and build configs at runtime from data with defineDynamicConfig. - [\
](https://bonniss.github.io/react-headless-form/guide/core/setup-form/section.md): The Section component renders a typed config fragment inside a section field's namespace, for splitting large forms into components. - [Built-in types](https://bonniss.github.io/react-headless-form/guide/core/builtin-types/index.md): Built-in field types available in every form regardless of fieldMapping: inline, hidden, section, array. - [inline](https://bonniss.github.io/react-headless-form/guide/core/builtin-types/inline.md): The built-in inline type: define a one-off field UI directly in config with a render function. - [hidden](https://bonniss.github.io/react-headless-form/guide/core/builtin-types/hidden.md): The built-in hidden type: a field that is registered and submitted but renders no UI. - [section](https://bonniss.github.io/react-headless-form/guide/core/builtin-types/section.md): The built-in section type: group fields for layout, or create a nested namespace in the submitted data with nested: true. - [array](https://bonniss.github.io/react-headless-form/guide/core/builtin-types/array.md): The built-in array type: repeatable items backed by RHF useFieldArray, rendered via fieldMapping.array, render or useArrayField. - [Field authoring](https://bonniss.github.io/react-headless-form/guide/core/field-authoring/index.md): How to write field components: plain React components that read value, onChange, label, errors and flags from useField. - [useField](https://bonniss.github.io/react-headless-form/guide/core/field-authoring/use-field.md): useField: the hook for field components — value, onChange, onBlur, ref, label, description, errorMessage, required, disabled, readOnly, visible. - [useArrayField](https://bonniss.github.io/react-headless-form/guide/core/field-authoring/use-array-field.md): useArrayField: the hook for array field components — fields, append, remove, duplicate and renderItems on top of RHF useFieldArray. - [render prop](https://bonniss.github.io/react-headless-form/guide/core/field-authoring/render.md): Per-field render prop: render a field's UI inline in config, wrap a section, or render an array without a separate component. - [Conditional rendering](https://bonniss.github.io/react-headless-form/guide/core/conditional-rendering.md): Show, hide, disable or mark fields required based on other values with visible / disabled / required functions, and limit re-renders with deps. - [Computed fields](https://bonniss.github.io/react-headless-form/guide/core/computed.md): Derive a field's value from other values with compute — type-checked, dependency-tracked, chainable, and safe for editable fields like slugs. - [Type safety](https://bonniss.github.io/react-headless-form/guide/core/type-safety.md): What BlueForm type-checks: config keys against the model, field types against fieldMapping, props against each component, and typed onSubmit data. - [Internationalization (i18n)](https://bonniss.github.io/react-headless-form/guide/core/i18n.md): How BlueForm translates labels, descriptions, placeholders and error messages through one function, how setupForm and Form combine their i18nConfig, and what a language switch does. - [Schema validation](https://bonniss.github.io/react-headless-form/guide/core/schema-validation.md): Validate the whole form with any Standard Schema (Zod, Valibot, ArkType) through the schema prop, typed end to end; or with any RHF resolver via formOptions.resolver. - [DevTools](https://bonniss.github.io/react-headless-form/guide/core/devtools.md): Add React Hook Form DevTools to BlueForm through renderRoot to inspect form state and values. ## Examples - [Overview](https://bonniss.github.io/react-headless-form/examples/index.md): Overview of the runnable examples and the shared setupForm/fieldMapping they all use. - [Login Form](https://bonniss.github.io/react-headless-form/examples/foundational/login-form.md): Minimal two-field form with validation rules and a submit handler — the base every other example builds on. - [Registration Form](https://bonniss.github.io/react-headless-form/examples/foundational/registration-form.md): Registration form with more field types, cross-field validation (password confirmation) and a terms checkbox. - [Nested Form](https://bonniss.github.io/react-headless-form/examples/foundational/nested-form.md): Mirror a nested data model with section (nested: true) and defineConfig for the nested part. - [Array Fields](https://bonniss.github.io/react-headless-form/examples/foundational/array-form.md): Repeatable group of fields with the array type — add, remove and duplicate items using useArrayField. - [Schema](https://bonniss.github.io/react-headless-form/examples/foundational/schema-form.md): The same sign-up form validated with Zod, Valibot, ArkType, Yup, Effect Schema (the schema prop, Standard Schema), Ajv, Joi and Superstruct (formOptions.resolver); onSubmit receives the parsed output. - [Conditional Fields](https://bonniss.github.io/react-headless-form/examples/foundational/conditional-form.md): Fields that appear or become editable based on other values, using visible and disabled functions. - [JSON conditions](https://bonniss.github.io/react-headless-form/examples/foundational/json-conditions.md): A form config stored as JSON, with visible / required conditions, per-row conditions and from: root. - [Computed Fields](https://bonniss.github.io/react-headless-form/examples/foundational/computed-field.md): Derive a field's value from other fields with compute (full name, initials from a computed field, BMI). - [Multi-step Wizard](https://bonniss.github.io/react-headless-form/examples/foundational/wizard-form.md): Multi-step wizard built with section composition: one form instance, per-step validation with trigger. - [DevTools](https://bonniss.github.io/react-headless-form/examples/recipes/devtools.md): Live example of React Hook Form DevTools injected through renderRoot. - [i18n](https://bonniss.github.io/react-headless-form/examples/recipes/i18n.md): BlueForm i18n in practice: a hand-written t, i18nConfig in setupForm or on Form, your own language store, and live examples with i18next, react-intl, Lingui and Paraglide JS. - [Integrations](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/index.md): Connect BlueForm to any UI library: adapters with useField, setupForm, and the library's own typed props. Live demos for 12 libraries. - [Mantine](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/mantine.md): Mantine v8 inputs wired to BlueForm field types with useField; live demo built from the repo. - [shadcn/ui](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/shadcn.md): shadcn/ui-style Tailwind components wired to BlueForm field types with useField. - [Ant Design](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/antd.md): Ant Design v6 inputs wired to BlueForm field types with useField; Form.Item for layout only. - [Material UI](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/mui.md): Material UI v7 inputs wired to BlueForm field types with useField; one helper shares the TextField props. - [animal-island-ui](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/animal-island.md): animal-island-ui (a cozy island-style React UI) wired to BlueForm field types with useField. - [PrimeReact](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/prime-react.md): PrimeReact v10 inputs wired to BlueForm field types with useField; live demo built from the repo. - [Chakra UI](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/chakra-ui.md): Chakra UI v3 inputs wired to BlueForm field types with useField; live demo built from the repo. - [Arco Design](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/arco-design.md): Arco Design inputs wired to BlueForm field types with useField; live demo built from the repo. - [Semi Design](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/semi-design.md): Semi Design inputs wired to BlueForm field types with useField; live demo built from the repo. - [TDesign](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/tdesign.md): TDesign React inputs wired to BlueForm field types with useField; live demo built from the repo. - [React-Bootstrap](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/react-bootstrap.md): React-Bootstrap (Bootstrap 5) inputs wired to BlueForm field types with useField; live demo built from the repo. - [React Native Web](https://bonniss.github.io/react-headless-form/examples/recipes/integrations/react-native-web.md): React Native components (through react-native-web) wired to BlueForm field types with useField; live demo built from the repo.