@sebgroup/frontend-tools
Version:
A set of frontend tools
9 lines (8 loc) • 462 B
TypeScript
/**
* 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;