@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
14 lines (13 loc) • 735 B
TypeScript
import React from 'react';
import { IBackToTopControlled } from './types/backToTop';
declare const BackToTopBoundary: <V extends string | unknown>(props: IBackToTopControlled<V>, ref: React.ForwardedRef<HTMLButtonElement> | undefined | null) => JSX.Element;
/**
* @description
* BackToTop component is a component that shows a button to scroll to the top of the page.
* @param {React.PropsWithChildren<IBackToTopControlled<V>>} props
* @returns {JSX.Element}
*/
declare const BackToTopControlled: <V extends string | unknown>(props: React.PropsWithChildren<IBackToTopControlled<V>> & {
ref?: React.ForwardedRef<HTMLButtonElement> | undefined | null;
}) => ReturnType<typeof BackToTopBoundary>;
export { BackToTopControlled };