@types/react-netlify-form
TypeScript icon, indicating that this package has built-in type declarations

2.1.5 • Public • Published

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

Credits

These definitions were written by Zhijiang Li.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-netlify-form

Weekly Downloads

1

Version

2.1.5

License

MIT

Unpacked Size

4.29 kB

Total Files

5

Last publish

Collaborators

  • types