# @types/react-image-fallback

> TypeScript definitions for react-image-fallback

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

## Install

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

## 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 | 8.0.6 |
| Published | 2023-11-07 |
| First published | 2018-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 8.0.6 (latest) — 2023-11-07
- 8.0.3 (ts3.6) — 2021-07-08
- 8.0.2 (ts3.5) — 2021-05-24
- 8.0.1 (ts2.8) — 2019-02-13
- 8.0.5 — 2023-10-18
- 8.0.4 — 2023-09-27
- 8.0.0 — 2018-09-18

## README

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

export default class ReactImageFallback extends React.Component<
    & ReactImageFallbackProps
    & React.DetailedHTMLProps<
        React.ImgHTMLAttributes<HTMLImageElement>,
        HTMLImageElement
    >,
    any
> {}

export interface ReactImageFallbackProps {
    src?: string | undefined;
    fallbackImage: string | React.ReactElement | string[] | Array<string | undefined> | React.ReactElement[];
    initialImage?: string | React.ReactElement | undefined;
    onLoad?: ((event: React.SyntheticEvent<HTMLImageElement>) => void) | undefined;
    onError?: ((event: React.SyntheticEvent<HTMLImageElement>) => void) | undefined;
    initialTimeout?: number | undefined;
}

````

### 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 [Ben Smith](https://github.com/8enSmith).

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