2.1.5 • Published 6 months ago
@types/react-netlify-form v2.1.5
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
// Type definitions for react-netlify-form 2.1
// Project: https://github.com/escaladesports/react-netlify-form#readme
// Definitions by: Zhijiang Li <https://github.com/zhjngli>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 20 Jan 2022 01:01:35 GMT
- Dependencies: @types/react, @types/react-google-recaptcha
- Global values: none
Credits
These definitions were written by Zhijiang Li.