2.1.5 • Published 5 months ago

@types/react-scroll-into-view-if-needed v2.1.5

Weekly downloads
4,424
License
MIT
Repository
github
Last release
5 months ago

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

// Type definitions for react-scroll-into-view-if-needed 2.1
// Project: https://github.com/icd2k3/react-scroll-into-view-if-needed#readme
// Definitions by: Angus Fretwell <https://github.com/angusfretwell>
//                 Allan Pope <https://github.com/allanpope>
//                 Jonathan Ly <https://github.com/jonathanly>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9

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 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.