UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

11 lines 376 B
/** * 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/useLockBodyScroll */ declare function useLockBodyScroll(isLocked: boolean): void; export { useLockBodyScroll }; //# sourceMappingURL=useLockBodyScroll.d.ts.map