Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 898 Bytes

Input.md

File metadata and controls

34 lines (19 loc) · 898 Bytes

@lynxts/webDocs


@lynxts/web / Input

Function: 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.

Type Parameters

T extends Struct

struct type of the form values

Parameters

props: InputProps<T>

the InputProps plus the HTMLInputElement attributes

Returns

ReactElement<any, string | JSXElementConstructor<any>>

Defined in

packages/web/src/lib/fields/Input.component.tsx:60