@marlon-chaviano/field-kit
Version:
A collection of reusable and accessible form components built with React, TailwindCSS, and fully integrated with React Hook Form...
11 lines (10 loc) • 426 B
TypeScript
import { type RegisterOptions } from "react-hook-form";
interface FormFieldProps extends React.ComponentProps<"textarea"> {
name: string;
label?: string;
className?: string;
errorClassName?: string;
rules?: RegisterOptions;
}
declare function TextAreaField({ name, label, rules, className, errorClassName, ...props }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
export default TextAreaField;