8.0.6 • Published 6 months ago
@types/react-smooth-scrollbar v8.0.6
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
- Last updated: Thu, 07 Oct 2021 22:31:32 GMT
- Dependencies: @types/react, @types/smooth-scrollbar
- Global values:
Scrollbar
Credits
These definitions were written by Alexey Svetliakov.