UNPKG

easy-form-handler

Version:

A powerful, lightweight React form handling library with built-in validation, customizable styling, and intuitive components.

18 lines (17 loc) 571 B
import React from "react"; interface InputProps { name?: string; type: string; label?: string; value?: string | number; watch?: (val: any) => void; error?: string; required?: boolean; placeholder?: string; className?: string; rule?: Record<string, any>; checkRuleOnBlur?: boolean | false; autoComplete?: string; } declare const Password: ({ name, type, label, value, watch, error, className, required, placeholder, rule, checkRuleOnBlur, autoComplete, ...props }: InputProps) => React.JSX.Element; export default Password;