FieldComponentProps
What every field component receives. A consumer overriding one via fieldComponents implements
this same contract, so an override is a drop-in rather than a fork of the surrounding form.
Type Parameters
Section titled “Type Parameters”TField
Section titled “TField”TField
Properties
Section titled “Properties”disabled
Section titled “disabled”disabled:
boolean
error:
string|null
A validation message for this field, or null. Render it and reference it via aria-describedby.
field:
TField
id:
string
Stable, unique per field — wire this to both the control’s id and its label’s htmlFor.
onChange
Section titled “onChange”onChange: (
value) =>void
Parameters
Section titled “Parameters”string | number | string[] | null
Returns
Section titled “Returns”void
value:
string|number|string[] |null