UNPKG

use-form-light

Version:

use-form-light is a very small React library that helps you manage forms and gives you ready-made form components with built-in checks

10 lines (9 loc) 595 B
import React from "react"; import type { FormProps, InputProps, TextareaProps, ButtonProps, SelectProps, OptionProps } from "../types"; declare const Input: React.FC<InputProps & ButtonProps>; declare const Textarea: React.FC<TextareaProps>; declare const Select: React.FC<SelectProps>; declare const Option: React.FC<OptionProps>; declare const Button: React.FC<ButtonProps>; export declare const Form: <T extends Record<string, any>>({ children, onSubmit, styleOption, className, }: FormProps<T>) => import("react/jsx-runtime").JSX.Element; export { Input, Textarea, Button, Select, Option };