@geist-ui/core
Version:
Modern and minimalist React UI library.
12 lines (11 loc) • 456 B
TypeScript
import { Dispatch, RefObject, SetStateAction } from 'react';
export declare type ElementStackItem = {
overflow: string;
paddingRight: string;
};
export declare type BodyScrollOptions = {
scrollLayer?: boolean;
delayReset?: number;
};
declare const useBodyScroll: (elementRef?: RefObject<HTMLElement> | null | undefined, options?: BodyScrollOptions | undefined) => [boolean, Dispatch<SetStateAction<boolean>>];
export default useBodyScroll;