UNPKG

react-hybrid-form

Version:

A super simple, straightforward and powerful hybrid form library which combines the benefits of both controlled or uncontrolled form.

22 lines (21 loc) 600 B
import React from "react"; type TextAreaFieldProps = { name: string; rows?: number; cols?: number; label?: string; fieldClass?: string; labelClass?: string; errorClass?: string; placeholder?: string; defaultValue?: string; textareaClass?: string; validate?: (value: string) => string | null; }; type TextAreaFieldRef = { reset: () => void; getValue: () => string; validate: () => boolean; }; declare const TextAreaField: React.ForwardRefExoticComponent<TextAreaFieldProps & React.RefAttributes<TextAreaFieldRef>>; export default TextAreaField;