FieldElementProps
Type that defines the element properties of a field.
Definition
FieldElementProps
object
name
string
autofocus
boolean
ref
(element:
FieldElement
) =>void
onInput
JSX.EventHandler<
FieldElement
,InputEvent
>onChange
JSX.EventHandler<
FieldElement
,Event
>onBlur
JSX.EventHandler<
FieldElement
,FocusEvent
>
Explanation
The properties must be passed to an HTML <input />
, <textarea />
or <select />
element. It is intended to use the spread syntax for this.
<input {...props} type="text" />