React API reference
React
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.
Last modified on