# @types/react-imageloader

> TypeScript definitions for react-imageloader

Latest version **2.1.17** (published 2025-08-15) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.1.17 |
| Published | 2025-08-15 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.1.17 (latest) — 2025-08-15
- 2.1.16 (ts4.6) — 2024-02-29
- 2.1.15 (ts4.5) — 2023-11-07
- 2.1.12 (ts3.7) — 2021-10-21
- 2.1.11 (ts3.6) — 2021-07-08
- 2.1.10 (ts3.3) — 2019-02-13
- 2.1.8 (ts2.6) — 2018-02-12
- 2.1.7 (ts2.3) — 2017-06-23
- 2.1.6 (ts2.1) — 2017-01-23
- 2.1.5 (ts2.0) — 2016-11-21
- 2.1.14 — 2023-10-18
- 2.1.13 — 2023-09-27
- 2.1.9 — 2018-08-04
- 2.1.4 — 2016-09-19
- 2.1.3 — 2016-08-25
- … 2 more at https://npm.io/package/@types/react-imageloader/versions

## README

# Installation
> `npm install --save @types/react-imageloader`

# Summary
This package contains type definitions for react-imageloader (https://github.com/hzdg/react-imageloader).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-imageloader.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-imageloader/index.d.ts)
````ts
/// <reference types="react" />

declare module "react-imageloader" {
    interface ImageLoaderProps extends React.RefAttributes<ImageLoader> {
        children?: React.ReactNode;
        /** An optional class name for the wrapper component. */
        className?: string | undefined;

        /** An optional object containing props for the underlying img component. */
        imgProps?: any;

        /** An optional handler for the error event. */
        onError?: ((event: any) => void) | undefined;

        /** An optional handler for the load event. */
        onLoad?: ((event: any) => void) | undefined;

        /** An optional function that returns a React element to be shown while the image loads. */
        preloader?: ((params: any) => React.ReactElement) | undefined;

        /** The URL of the image to be loaded. */
        src: string;

        /** An optional object containing styles for the wrapper component. */
        style?: React.CSSProperties | undefined;

        /** A function that takes a props argument and returns a React element to be used as the wrapper component. Defaults to React.DOM.span. */
        wrapper?: ((props: any) => React.ReactElement) | undefined;
    }

    class ImageLoader extends React.Component<ImageLoaderProps> {}

    export = ImageLoader;
}

````

### Additional Details
 * Last updated: Fri, 15 Aug 2025 08:39:32 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by .

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