# @types/react-netlify-form

> TypeScript definitions for react-netlify-form

Latest version **2.1.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-netlify-form
pnpm add @types/react-netlify-form
yarn add @types/react-netlify-form
bun add @types/react-netlify-form
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.1.5 |
| Published | 2023-11-07 |
| First published | 2021-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-netlify-form
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-netlify-form
- npm.io page: https://npm.io/package/@types/react-netlify-form

## Dependencies (2)

- [@types/react](https://npm.io/package/@types/react.md) *
- [@types/react-google-recaptcha](https://npm.io/package/@types/react-google-recaptcha.md) *

## Recent versions

- 2.1.5 (latest) — 2023-11-07
- 2.1.2 (ts3.8) — 2022-01-20
- 2.1.1 (ts3.6) — 2021-07-08
- 2.1.0 (ts3.4) — 2021-01-15
- 2.1.4 — 2023-10-18
- 2.1.3 — 2023-09-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-netlify-form/index.d.ts)
````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](https://npmjs.com/package/@types/react), [@types/react-google-recaptcha](https://npmjs.com/package/@types/react-google-recaptcha)

# Credits
These definitions were written by [Zhijiang Li](https://github.com/zhjngli).

---
_Source: https://npm.io/package/@types/react-netlify-form · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
