export type ValidateFn = (value: TValue) => string | undefined; export type ValidateFnProp = ValidateFn | Array>; export type InputProps = { /** * A single function or an array of functions that validate the input value. */ validate?: ValidateFnProp; /** * Adds red asterisk on the right side of label and sets required on input element * @default false */ required?: boolean; onChange?: (value: TOnChange) => void; };