UNPKG

@avarock/react-form

Version:

A customizable React form library with modular input components for building flexible forms

12 lines (11 loc) 459 B
import type { CSSProperties, ReactElement } from "react"; type FormProps = { style?: CSSProperties; children: ReactElement | ReactElement[]; onSubmit: (formState: Record<string, any>) => void; HTMLValidate?: boolean; showSubmitBtn?: boolean; theme?: "light" | "dark"; }; declare function Form({ style, children, onSubmit, HTMLValidate, showSubmitBtn, theme, }: FormProps): import("react/jsx-runtime").JSX.Element; export default Form;