react-remove-scroll-bar
Version:
Removes body scroll without content _shake_
14 lines (13 loc) • 415 B
TypeScript
import * as React from 'react';
import { GapMode } from './utils';
export interface BodyScroll {
noRelative?: boolean;
noImportant?: boolean;
gapMode?: GapMode;
}
export declare const lockAttribute = "data-scroll-locked";
export declare const useLockAttribute: () => void;
/**
* Removes page scrollbar and blocks page scroll when mounted
*/
export declare const RemoveScrollBar: React.FC<BodyScroll>;