Options
All
  • Public
  • Public/Protected
  • All
Menu

Input components that call useValidation should generally have their Props interface extend this.

Type parameters

  • TValue

Hierarchy

  • UseValidationCommonProps<TValue>
    • UseValidationProps

Index

Properties

Optional asyncValidator

asyncValidator?: AsyncValidator<TValue>

Optional defaultValue

defaultValue?: TValue

Optional formLevelValidatorOutput

formLevelValidatorOutput?: ValidatorOutput

name

name: string

showValidation

showValidation: boolean

Optional validationKey

validationKey?: string | number | boolean

validators

validators: Validator<TValue>[]

Optional value

value?: TValue

Methods

Optional onAsyncError

  • onAsyncError(e: unknown): void

Optional onChange

  • onChange(value: TValue): void

Optional onValidChange

  • onValidChange(name: string, valid: boolean): void

Generated using TypeDoc