Skip to content

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.

TField

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: (value) => void

string | number | string[] | null

void


value: string | number | string[] | null