FieldControlProps

interface
primitives/Form.tsx:13

What a field hands back for wiring a control.

Passed to FormField's render function rather than injected by cloning the child. Cloning looks tidier at the call site and breaks the moment a caller wraps their control in anything — a fragment, a styled div, a component of their own — because the props land on the wrapper instead of the input, and nothing reports it. Handing them over explicitly makes the wiring visible and type-checked.

Properties

NameTypeDescription
aria-describedbyundefined | stringPoints at the hint and error text, so both are announced with the control.
aria-invalidundefined | booleantrue while the field has an error.
idstring