rooks
Version:
Collection of awesome react hooks
11 lines (10 loc) • 335 B
TypeScript
/**
* useLockBodyScroll hook
*
* This hook locks the scroll of the body element when `isLocked` is set to `true`.
*
* @param isLocked Whether or not to lock the body scroll
* @see https://rooks.vercel.app/docs/hooks/useLockBodyScroll
*/
declare function useLockBodyScroll(isLocked: boolean): void;
export { useLockBodyScroll };