katoikia-app/web-ui/web-react/node_modules/primereact/scrolltop/scrolltop.d.ts

22 lines
607 B
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import * as React from 'react';
import { CSSTransitionProps } from '../csstransition';
import { IconType } from '../utils';
type ScrollTopTargetType = 'window' | 'parent';
type ScrollTopScrollBehavior = 'auto' | 'smooth';
export interface ScrollTopProps {
target?: ScrollTopTargetType;
threshold?: number;
icon?: IconType<ScrollTopProps>;
behavior?: ScrollTopScrollBehavior;
className?: string;
style?: object;
transitionOptions?: CSSTransitionProps;
onShow?(): void;
onHide?(): void;
}
export declare class ScrollTop extends React.Component<ScrollTopProps, any> { }