FieldControlProps
interfaceWhat 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
| Name | Type | Description |
|---|---|---|
aria-describedby | undefined | string | Points at the hint and error text, so both are announced with the control. |
aria-invalid | undefined | boolean | true while the field has an error. |
id | string |