# @types/react-infinite-scroller

> TypeScript definitions for react-infinite-scroller

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

## Install

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

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

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.2.5 (latest) — 2023-11-07
- 1.2.3 (ts3.9) — 2022-03-31
- 1.2.2 (ts3.6) — 2021-07-07
- 1.2.1 (ts2.8) — 2019-02-13
- 1.0.6 (ts2.6) — 2018-02-12
- 1.0.5 (ts2.3) — 2018-01-03
- 1.0.1 (ts2.1) — 2017-06-02
- 1.2.4 — 2023-10-18
- 1.2.0 — 2018-11-06
- 1.0.8 — 2018-10-08
- 1.0.7 — 2018-08-04
- 1.0.4 — 2017-08-01
- 1.0.3 — 2017-07-12
- 1.0.2 — 2017-06-23
- 1.0.0 — 2017-05-18

## README

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

declare namespace InfiniteScroll {
    /**
     * <InfiniteScroll /> properties.
     */
    interface InfiniteScrollProps extends React.HTMLProps<InfiniteScroll> {
        /**
         * Name of the element that the component should render as.
         * Defaults to 'div'.
         */
        element?: React.ReactNode | string | undefined;
        /**
         * Whether there are more items to be loaded. Event listeners are removed if false.
         * Defaults to false.
         */
        hasMore?: boolean | undefined;
        /**
         * Whether the component should load the first set of items.
         * Defaults to true.
         */
        initialLoad?: boolean | undefined;
        /**
         * Whether new items should be loaded when user scrolls to the top of the scrollable area.
         * Default to false.
         */
        isReverse?: boolean | undefined;
        /**
         * A callback for when more items are requested by the user.
         * Page param is next page index.
         */
        loadMore(page: number): void;
        /**
         * The number of the first page to load, with the default of 0, the first page is 1.
         * Defaults to 0.
         */
        pageStart?: number | undefined;
        /**
         * The distance in pixels before the end of the items that will trigger a call to loadMore.
         * Defaults to 250.
         */
        threshold?: number | undefined;
        /**
         * Proxy to the useCapture option of the added event listeners.
         * Defaults to false.
         */
        useCapture?: boolean | undefined;
        /**
         * Add scroll listeners to the window, or else, the component's parentNode.
         * Defaults to true.
         */
        useWindow?: boolean | undefined;
        /**
         * Loader component for indicating "loading more".
         */
        loader?: React.ReactElement | undefined;
        /**
         * Override method to return a different scroll listener if it's not the immediate parent of InfiniteScroll.
         */
        getScrollParent?(): HTMLElement | null;
    }
    class InfiniteScroll extends React.Component<InfiniteScrollProps> {
        getParentElement(elem?: HTMLElement | null): HTMLElement | undefined | null;
    }
    namespace InfiniteScroll {}
}

export = InfiniteScroll.InfiniteScroll;

````

### 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 [Lauri Lavanti](https://github.com/Lapanti), [Piotr Srebniak](https://github.com/psrebniak), [Brett Miller](https://github.com/WrathZA), and [Yipeng Zhao](https://github.com/daggerjames).

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