LoadingOverlay
Usage
Use LoadingOverlay to overlay element to disable interactions and indicate loading state. Note that elements under overlay are still focusable with keyboard. Remember to add additional logic to handle this case.
Overlay had absolute position and will take 100% of width and height of nearest parent container with relative position. Use it when you need to disable user interactions and indicate loading state, for example, while form is submitting.
visible
is the only required prop, if it set to false component will not render anything.
Transition duration
You can change appear and disappear animations duration by passing transitionDuration
prop:
Loader and Overlay props
LoadingOverlay is built using Overlay and Loader components. You can change all props of Loader component, opacity and color of Overlay:
Configure default loader
You can configure default loader in MantineProvider, it will be used in Loader and LoadingOverlay components by default:
Custom loader
You can use any other loader with LoadingOverlay by setting loader
prop: