@cfxjs/react-ui
Version:
Modern and minimalist React UI library.
10 lines (9 loc) • 400 B
TypeScript
import { Dispatch, RefObject, SetStateAction } from 'react';
export declare type ElementStackItem = {
last: string;
};
export declare type BodyScrollOptions = {
scrollLayer: boolean;
};
declare const useBodyScroll: (elementRef?: RefObject<HTMLElement> | null | undefined, options?: BodyScrollOptions | undefined) => [boolean, Dispatch<SetStateAction<boolean>>];
export default useBodyScroll;