RemoveScroll

Disable document scroll when a component is mounted.

Import

import { RemoveScroll } from '@hoverinc/design-system-react-web';

Usage

Just wrap content, which should be scrollable, and everything else would not.

Note

See the react-remove-scroll documentation for more information and API details.

import { RemoveScroll } from '@hoverinc/design-system-react-web'; <RemoveScroll>Only this content would be scrollable</RemoveScroll>;