React API reference
All supported JavaScript exports are available from form0-react unless another path is shown.
Rendering
FormRenderer— render and manage a schema-driven form.ThemeProvider,ThemeContext,useThemeClass— provide or read the active theme class.
See FormRenderer and Themes and styling.
Field registry
FieldRegistryProvider,FieldRegistryContext,useFieldRegistrycreateFieldRegistry,defaultFieldRegistryregisterFieldComponent,unregisterFieldComponent,resetFieldComponentsgetFieldComponent,listRegisteredFieldTypes,getMissingFieldComponentTypesKNOWN_FIELD_TYPES
Schema utilities
cloneDeep(value)andcloneSchema(schema)create detached copies.ensureSchemaKeys(elements)adds stable keys where required and reports whether it changed the input.prepareSchema(schema)clones a schema and ensures element keys on the copy.
Specialized integration
useBuildingPlanController(options)coordinates the renderer’s building-plan section UI with repeatable data. It is specialized rather than a general form-state hook.
The internal useFormEngine, worker client, individual default renderer components, and
FieldRenderer are not package exports. Importing internal files is unsupported by the package
export map.
Theme tokens are exported separately from form0-react/theme.css.js. The compiled stylesheet is
available as form0-react/index.css.
Engine options
FormRenderer.engineOptions: helpers, security, onWarning, onUpdate,
onOperations, diagnostics.console, onDiagnostics(snapshot, meta).
FormRenderer: scopeId, instancePath,
evaluationId, kind: "evaluation" | "scope-ended".
Managed event API
See the managed event controller and scope contract in FormRenderer.
engineOptions.events: lifecycle (true), required recordKind (new/existing), fieldInteractions ([focus, blur, click]). Set lifecycle: false to keep only load-record, edit-record, and change, or fieldInteractions: [] to disable automatic interactions.
engineOptions.onEventController(controller | null): dispatch(request), prepareSave(request).
Setters reject values in the wrong shape. Initial values and application overrides are more tolerant, including in View, which keeps accepted calculations. See the value-update contract.