UNPKG

react-scroll-blocker

Version:

A modern React 18 compatible scroll lock component for preventing body scroll

10 lines (9 loc) 400 B
import React from 'react'; import { TouchScrollableProps } from './types'; /** * TouchScrollable component that allows an element to remain scrollable * even when ScrollLock is active. This is particularly important for iOS * devices where overflow: hidden on body doesn't prevent touch scrolling. */ declare const TouchScrollable: React.FC<TouchScrollableProps>; export default TouchScrollable;