UNPKG

@conduction/components

Version:

React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)

7 lines (6 loc) 323 B
import { FieldErrors, FieldValues, RegisterOptions, UseFormRegister } from "react-hook-form"; export interface IReactHookFormProps { register: UseFormRegister<FieldValues>; errors: FieldErrors; validation?: Omit<RegisterOptions<FieldValues, any>, "valueAsNumber" | "valueAsDate" | "setValueAs" | "disabled">; }