# @types/react-confirm

> TypeScript definitions for react-confirm

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

## Install

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

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2023-11-07 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.2.3 (latest) — 2023-11-07
- 0.2.0 (ts4.2) — 2023-01-25
- 0.1.4 (ts2.8) — 2019-02-13
- 0.1.1 (ts2.6) — 2018-02-12
- 0.1.0 (ts2.3) — 2018-01-02
- 0.2.2 — 2023-10-18
- 0.2.1 — 2023-09-27
- 0.1.3 — 2018-12-27
- 0.1.2 — 2018-08-04

## README

# Installation
> `npm install --save @types/react-confirm`

# Summary
This package contains type definitions for react-confirm (https://github.com/haradakunihiko/react-confirm).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-confirm.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-confirm/index.d.ts)
````ts
import * as React from "react";

export function confirmable<P>(component: React.ComponentType<ReactConfirmProps & P>): React.ComponentType<P>;
export function createConfirmation(
    component: React.ComponentType<any>,
    unmountDelay?: number,
    mountingNode?: HTMLElement,
): (props: any) => Promise<string>;

export interface ReactConfirmProps {
    confirmation: string | React.ReactElement;
    dismiss: () => void;
    proceed: (value?: string) => void;
    cancel: (value?: string) => void;
    show: boolean;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [santiagodoldan](https://github.com/santiagodoldan), and [Mark Nelissen](https://github.com/marknelissen).

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