Installation
npm install --save @types/react-netlify-form
Summary
This package contains type definitions for react-netlify-form (https://github.com/escaladesports/react-netlify-form#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-netlify-form.
index.d.ts
import * as React from "react";
import Recaptcha, { ReCAPTCHAProps } from "react-google-recaptcha";
export interface NetlifyFormState {
loading: boolean;
error: boolean;
success: boolean;
recaptchaError?: boolean | undefined;
recaptcha?: React.ReactElement | undefined;
}
export interface NetlifyFormProps {
name: string;
action?: string | undefined;
honeypotName?: string | undefined;
recaptcha?: ReCAPTCHAProps | undefined;
children: (state: NetlifyFormState) => React.ReactElement;
}
declare class NetlifyForm extends React.Component<NetlifyFormProps, NetlifyFormState> {
constructor(props: NetlifyFormProps);
render(): React.ReactElement;
}
export default NetlifyForm;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react, @types/react-google-recaptcha
Credits
These definitions were written by Zhijiang Li.