UNPKG

@modern-kit/react

Version:
13 lines (10 loc) 302 B
import * as React from 'react'; interface UseScrollLockProps { autoLock?: boolean; } declare function useScrollLock<T extends HTMLElement>({ autoLock, }?: UseScrollLockProps): { ref: React.MutableRefObject<T | null>; lock: () => void; unlock: () => void; }; export { useScrollLock };