@lynxts/web • Docs
@lynxts/web / Input
Input<
T
>(props
):ReactElement
<any
,string
|JSXElementConstructor
<any
>>
Helper component to work with <input>
elements within a FormProvider<T>
.
I.e., it implements the useField and useFieldValidation
hooks to provide the value state management and validation helpers right out
of the box.
• T extends Struct
struct type of the form values
• props: InputProps
<T
>
the InputProps plus the HTMLInputElement attributes
ReactElement
<any
, string
| JSXElementConstructor
<any
>>