Skip to Content
ContentAPIType AliasesType Alias: InputFieldProps<TFieldValues>

Hero Hook Form API v2.5.1


Hero Hook Form API / InputFieldProps

Type Alias: InputFieldProps<TFieldValues>

InputFieldProps<TFieldValues> = FieldBaseProps<TFieldValues, string> & WithControl<TFieldValues> & object

Defined in: fields/InputField.tsx:18 

Props for the InputField component.

Type Declaration

inputProps?

optional inputProps: Omit<React.ComponentProps<typeof Input>, "value" | "onValueChange" | "label" | "isInvalid" | "errorMessage" | "isDisabled">

transform()?

optional transform: (value) => string

Parameters

value

string

Returns

string

Type Parameters

TFieldValues

TFieldValues extends FieldValues

The form data type