@flexis/ui
Version:
Styleless React Components
9 lines • 385 B
TypeScript
/**
* Toggle scroll blocking.
* @param active - Current state.
* @param unblockScroll - Unblock scroll function.
* @param element - Element to block scroll.
* @return New unblock scroll function or null.
*/
export default function toggleScrollBlock(active: boolean, unblockScroll: () => void, element?: HTMLElement): () => void;
//# sourceMappingURL=toggleScrollBlock.d.ts.map