@nayan-ui/react
Version:
Reusable Component Library for ReactJS.
19 lines • 906 B
TypeScript
import { Control, FieldError, FieldValues, RegisterOptions } from 'react-hook-form';
import { InputProps } from './ui/input';
export interface NFormInputProps<TFieldValues extends FieldValues = FieldValues> extends Omit<InputProps, 'name'> {
id?: string;
type?: string;
label?: string;
placeholder?: string;
className?: string;
labelClassName?: string;
inputClassName?: string;
control: Control<TFieldValues>;
rules?: RegisterOptions;
name: string;
error?: FieldError;
}
declare const NFormInputComponent: <TFieldValues extends FieldValues = FieldValues>({ control, rules, error, name, type, id, label, placeholder, className, labelClassName, inputClassName, ...remaining }: NFormInputProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
export declare const NFormInput: typeof NFormInputComponent;
export {};
//# sourceMappingURL=NFormInput.d.ts.map