UNPKG

@hhgtech/hhg-components

Version:
16 lines (15 loc) 591 B
import { useLayoutEffect } from 'react'; export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; interface PreventScrollOptions { /** Whether the scroll lock is disabled. */ isDisabled?: boolean; focusCallback?: () => void; } /** * Prevents scrolling on the document body on mount, and * restores it on unmount. Also ensures that content does not * shift due to the scrollbars disappearing. */ export declare function usePreventScroll(options?: PreventScrollOptions): void; export declare function isInput(target: Element): boolean; export {};