UNPKG

@sebgroup/frontend-tools

Version:
9 lines (8 loc) 462 B
/** * Inserts a class into the body tag to disable overflow to avoid background scrolling * @example This can be used with a modal component * @param {boolean} toggle The value of the modal toggle * @note It inserts the class `overflow-hidden` which is a **bootstrap** class. * If you are not using bootstrap, please make sure that the class is defined with `overflow: hidden;` */ export declare function toggleBodyOverflow(toggle: boolean): void;