primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
25 lines (20 loc) • 696 B
TypeScript
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?: React.CSSProperties;
transitionOptions?: CSSTransitionProps;
onShow?(): void;
onHide?(): void;
children?: React.ReactNode;
}
export declare class ScrollTop extends React.Component<ScrollTopProps, any> {
public getElement(): HTMLButtonElement;
}