@sikka/hawa
Version:
Modern UI Kit made with Tailwind
16 lines (13 loc) • 551 B
TypeScript
import { FC, RefObject } from 'react';
type BackToTopTypes = {
/** Horizontal padding relative to the attached corner */
paddingX?: number;
/** Vertical padding relative to the attached corner */
paddingY?: number;
/** Increase to the threshold of the scroll value that has to be passed for the button to appear */
paddingThreshold?: number;
corner?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
anchor: RefObject<HTMLInputElement>;
};
declare const BackToTop: FC<BackToTopTypes>;
export { BackToTop };