FormRenderer
React
FormRenderer validates and prepares a schema, creates the form engine, renders fields and
sections, and produces structured records on submission.
Code
Essential properties
| Property | Purpose |
|---|---|
schema | A form0 schema containing form.elements. |
initialValues | Initial non-repeatable field values. |
initialSnapshot | Restore raw values, repeatable state, and timestamps together. |
overrideValues | Apply authoritative values over initial values. |
onSubmit | Receive the structured record and submission metadata. |
onSnapshotChange | Observe seed and user-change snapshots. |
mode | Start in edit or readonly mode. |
Consumer-owned UI and state
headerAccessoryrenders a React node, or a function receiving{ mode }, between the summary and form body.recordMetadataFieldsdisplays read-only record metadata. A descriptor withdisplayValuenever enters engine values, snapshots, or submitted values.externalDirtyincludes application-owned changes in overlay discard confirmation.submitBlockedReasondisables and guards submission while an external requirement is unresolved.onSchemaReadyreceives the prepared schema after stable keys have been ensured.
Form element properties
Additional standard form properties such as id, aria-*, and event handlers are forwarded to
the rendered <form>. Do not use this path for engine configuration.
Continue with Values, snapshots, and submission or Modes, placement, and navigation.
Last modified on