conduction-components
Version:
React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)
25 lines (20 loc) • 585 B
text/typescript
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">;
}
export interface IInputProps {
name: string;
disabled?: boolean;
defaultValue?: string;
}
export interface ITextAreaProps {
name: string;
disabled?: boolean;
defaultValue?: string;
}
export interface ICheckboxProps {
label: string;
name: string;
}