Blueprint

Remove Scroll

Disable document scroll when a component is mounted

Import


import { RemoveScroll } from '@hover/blueprint';

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 '@hover/blueprint';
<RemoveScroll>Only this content would be scrollable</RemoveScroll>;


Copyright © 2024 Hover Inc. All Rights Reserved.