UNPKG

611 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 spinSize: number;
13 containerSize: number;
14}
15export interface ScrollBarRef {
16 delayHidden: () => void;
17}
18declare const ScrollBar: React.ForwardRefExoticComponent<ScrollBarProps & React.RefAttributes<ScrollBarRef>>;
19export default ScrollBar;