@types/react-custom-scrollbars
TypeScript icon, indicating that this package has built-in type declarations

4.0.13 • Public • Published

Installation

npm install --save @types/react-custom-scrollbars

Summary

This package contains type definitions for react-custom-scrollbars (https://github.com/malte-wessel/react-custom-scrollbars).

Details

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

index.d.ts

import * as React from "react";

export as namespace ReactCustomScrollbars;

export interface positionValues {
    top: number;
    left: number;
    clientWidth: number;
    clientHeight: number;
    scrollWidth: number;
    scrollHeight: number;
    scrollLeft: number;
    scrollTop: number;
}

export interface ScrollbarProps extends React.HTMLProps<Scrollbars> {
    onScroll?: React.UIEventHandler<any> | undefined;
    onScrollFrame?: ((values: positionValues) => void) | undefined;
    onScrollStart?: (() => void) | undefined;
    onScrollStop?: (() => void) | undefined;
    onUpdate?: ((values: positionValues) => void) | undefined;

    renderView?: React.FunctionComponent<any> | undefined;
    renderTrackHorizontal?: React.FunctionComponent<any> | undefined;
    renderTrackVertical?: React.FunctionComponent<any> | undefined;
    renderThumbHorizontal?: React.FunctionComponent<any> | undefined;
    renderThumbVertical?: React.FunctionComponent<any> | undefined;

    tagName?: string | undefined;
    hideTracksWhenNotNeeded?: boolean | undefined;

    autoHide?: boolean | undefined;
    autoHideTimeout?: number | undefined;
    autoHideDuration?: number | undefined;

    thumbSize?: number | undefined;
    thumbMinSize?: number | undefined;
    universal?: boolean | undefined;

    autoHeight?: boolean | undefined;
    autoHeightMin?: number | string | undefined;
    autoHeightMax?: number | string | undefined;

    style?: React.CSSProperties | undefined;
}

export class Scrollbars extends React.Component<ScrollbarProps> {
    scrollTop(top: number): void;
    scrollLeft(left: number): void;
    scrollToTop(): void;
    scrollToBottom(): void;
    scrollToLeft(): void;
    scrollToRight(): void;
    getScrollLeft(): number;
    getScrollTop(): number;
    getScrollWidth(): number;
    getScrollHeight(): number;
    getClientWidth(): number;
    getClientHeight(): number;
    getValues(): positionValues;
}

export default Scrollbars;

Additional Details

  • Last updated: Tue, 12 Dec 2023 19:06:50 GMT
  • Dependencies: @types/react

Credits

These definitions were written by kittimiyo.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.1322,002ts5.7
4.0.1322,002ts5.6
4.0.1322,002latest
4.0.1322,002ts4.6
4.0.1322,002ts4.7
4.0.1322,002ts4.8
4.0.1322,002ts4.9
4.0.1322,002ts5.0
4.0.1322,002ts5.1
4.0.1322,002ts5.2
4.0.1322,002ts5.3
4.0.1322,002ts5.4
4.0.1322,002ts5.5
4.0.1322,002ts5.8
4.0.1014,736ts3.8
4.0.1014,736ts3.9
4.0.1014,736ts4.0
4.0.1014,736ts4.1
4.0.1014,736ts4.2
4.0.1014,736ts4.3
4.0.1014,736ts4.4
4.0.74,115ts3.0
4.0.74,115ts3.1
4.0.74,115ts3.2
4.0.74,115ts3.3
4.0.74,115ts3.4
4.0.74,115ts3.5
4.0.61,471ts2.8
4.0.61,471ts2.9
4.0.81,118ts3.6
4.0.9606ts3.7
4.0.12495ts4.5
4.0.1371ts2.3
4.0.1371ts2.4
4.0.1371ts2.5
4.0.42ts2.6
4.0.42ts2.7
4.0.02ts2.1
4.0.02ts2.2

Version History

VersionDownloads (Last 7 Days)Published
3.0.110
4.0.1322,002
3.0.100
4.0.12495
3.0.90
4.0.11174
3.0.80
4.0.1014,736
3.0.70
4.0.9606
3.0.61
4.0.81,118
3.0.51
4.0.74,115
4.0.61,471
3.0.41
4.0.52,553
3.0.30
4.0.42
4.0.350
4.0.225
3.0.21
3.0.10
4.0.1371
4.0.02
3.0.01
2.0.00

Package Sidebar

Install

npm i @types/react-custom-scrollbars

Weekly Downloads

11,007

Version

4.0.13

License

MIT

Unpacked Size

6.69 kB

Total Files

5

Last publish

Collaborators

  • types