UNPKG

@marlon-chaviano/field-kit

Version:

A collection of reusable and accessible form components built with React, TailwindCSS, and fully integrated with React Hook Form...

10 lines (9 loc) 404 B
import { RegisterOptions } from "react-hook-form"; interface InputFieldProps extends React.InputHTMLAttributes<HTMLInputElement> { name: string; rules?: RegisterOptions; errorClassName?: string; label?: string; } declare function InputField({ name, label, rules, className, errorClassName, ...props }: InputFieldProps): import("react/jsx-runtime").JSX.Element; export default InputField;