Mantine components use the react-remove-scroll
library to lock scroll. You can use it in your application to lock scroll. For your
convenience, the @mantine/core package exports the RemoveScroll component:
The component supports all props that are supported by the react-remove-scroll library.
You can find the full list of props in the official documentation.