UNPKG

682 BTypeScriptView Raw
1import * as React from 'react';
2export type ScrollBarDirectionType = 'ltr' | 'rtl';
3export interface ScrollBarProps {
4 prefixCls: string;
5 scrollOffset: number;
6 scrollRange: number;
7 rtl: boolean;
8 onScroll: (scrollOffset: number, horizontal?: boolean) => void;
9 onStartMove: () => void;
10 onStopMove: () => void;
11 horizontal?: boolean;
12 style?: React.CSSProperties;
13 thumbStyle?: React.CSSProperties;
14 spinSize: number;
15 containerSize: number;
16}
17export interface ScrollBarRef {
18 delayHidden: () => void;
19}
20declare const ScrollBar: React.ForwardRefExoticComponent<ScrollBarProps & React.RefAttributes<ScrollBarRef>>;
21export default ScrollBar;