npm.io
2.1.5 • Published 2 years ago

@types/react-scroll-into-view-if-needed

Licence
MIT
Version
2.1.5
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-scroll-into-view-if-needed

Summary

This package contains type definitions for react-scroll-into-view-if-needed (https://github.com/icd2k3/react-scroll-into-view-if-needed#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-scroll-into-view-if-needed.

index.d.ts

import * as React from "react";
import * as ScrollIntoViewIfNeeded from "scroll-into-view-if-needed";

export interface ReactScrollIntoViewIfNeededProps extends React.HTMLProps<HTMLElement> {
    options?: ScrollIntoViewIfNeeded.Options | undefined;
    active?: boolean | undefined;
    elementType?: keyof React.JSX.IntrinsicElements | undefined;
}

export default class ReactScrollIntoViewIfNeeded extends React.Component<
    ReactScrollIntoViewIfNeededProps
> {}

Additional Details

Credits

These definitions were written by Angus Fretwell, Allan Pope, and Jonathan Ly.