8.0.6 • Published 2 years ago

@types/react-smooth-scrollbar v8.0.6

Weekly downloads
656
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/react-smooth-scrollbar

Summary

This package contains type definitions for react-smooth-scrollbar (https://github.com/idiotWu/react-smooth-scrollbar).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-smooth-scrollbar.

index.d.ts

// Type definitions for react-smooth-scrollbar 8.0
// Project: https://github.com/idiotWu/react-smooth-scrollbar
// Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from "react";
import SmoothScrollbar from "smooth-scrollbar";
import { ScrollbarOptions, ScrollStatus } from "smooth-scrollbar/interfaces";

declare namespace Scrollbar {
    interface ScrollbarProps extends Partial<ScrollbarOptions> {
        children?: React.ReactNode;
        /**
         * Pipe to scrollbar.addListener()
         */
        onScroll?(status: ScrollStatus, scrollbarInstance: SmoothScrollbar): void;
        /**
         * Keep scrollbar tracks visible whether it's scrolling or not
         * @default false
         */
        alwaysShowTracks?: boolean | undefined;
        /**
         * Optional class name
         */
        className?: string | undefined;
        /**
         * Optional style
         */
        style?: React.CSSProperties | undefined;
    }
}

declare class Scrollbar extends React.Component<Scrollbar.ScrollbarProps> {
    /**
     * Scrollbar instance
     */
    readonly scrollbar: SmoothScrollbar;
}

export as namespace Scrollbar;
export = Scrollbar;

Additional Details

Credits

These definitions were written by Alexey Svetliakov.

8.0.5

2 years ago

8.0.6

2 years ago

8.0.4

4 years ago

8.0.3

4 years ago

8.0.2

7 years ago

8.0.1

7 years ago

8.0.0

8 years ago

7.2.3

8 years ago

7.2.2

8 years ago

7.2.1

8 years ago

7.2.0

8 years ago