Every field config accepts an optional render prop for defining the field UI inline — without creating a separate component or calling any hooks.
The render function receives everything the field needs as arguments, the same props that useField or useArrayField would return. This makes inline field definitions self-contained: no hook calls, no extra components, no boilerplate.
For fields with a registered component in fieldMapping, render receives self — the rendered instance of the registered component — and the field's state to read: label, required, value, errorMessage, isDirty, … It gets no onChange / onBlur / ref: writing belongs to the component. To draw and control the input yourself, use an inline field. Use render to wrap or decorate the component without replacing it:
self is already wrapped in FieldProvider and ready to render — useField works correctly inside the component. There are no children in this context — custom fields do not have nested field config.
In the live example: name, with a hint under the input.
Tip
render on a custom field is useful for one-off decoration — adding a tooltip, an icon, an extra label, or a conditional wrapper around a specific instance without creating a new component. For decoration that applies to all fields of that type, handle it inside the component itself instead.
For array fields, render receives the full useArrayField context — all array helpers and field props — plus children as the pre-rendered output of all current items via renderItems(). It wins over a component registered in fieldMapping["array"], which stays the default for array fields without render.
read-only field state (value, errorMessage, …; no onChange) + self
Wrap or decorate the registered component
section
FieldResolvedProps + children
Wrap the section's inner fields in a container
array
useArrayField context + children
Define the array shell — buttons, errors, item list
hidden
—
Not supported
Tip
render works well for self-contained, one-off cases. When a field grows complex — multiple hooks, local state, side effects — extracting it into a dedicated component makes it easier to maintain and test. That component can still be passed directly to render if it's only used in one place, or registered in fieldMapping if it's shared across forms.