@rajkrajpj/cultivate-ui-library
Version:
A modern, type-safe, accessible React component library for fintech investor forms. Build complete investor forms in minutes with zero configuration, supporting multiple regulations (RegA+, RegD, RegCF) and investor types.
14 lines (13 loc) • 700 B
TypeScript
import { Control, FieldErrors, FieldValues, UseFormClearErrors, UseFormRegister, UseFormSetError, UseFormSetValue, UseFormWatch } from 'react-hook-form';
interface PrimaryFieldsProps<T extends FieldValues = FieldValues> {
register: UseFormRegister<T>;
errors: FieldErrors<T>;
watch: UseFormWatch<T>;
setValue: UseFormSetValue<T>;
prefix?: string;
control: Control<T>;
setError: UseFormSetError<T>;
clearErrors: UseFormClearErrors<T>;
}
export declare const PrimaryFields: <T extends FieldValues = FieldValues>({ register, errors, watch, setValue, prefix, control, setError, clearErrors, }: PrimaryFieldsProps<T>) => import("react/jsx-runtime").JSX.Element;
export {};