react-go-to-top-customisable-button
Version:
A customizable 'Back to Top' button for React apps with smooth animations and custom styling.
13 lines (12 loc) • 371 B
TypeScript
import React from "react";
interface BackToTopProps {
size?: number;
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
backgroundColor?: string;
textColor?: string;
icon?: React.ReactNode;
scrollThreshold?: number;
transitionDuration?: number;
}
declare const BackToTop: React.FC<BackToTopProps>;
export default BackToTop;