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 has 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.
You can change appear and disappear animations duration by passing
You can use any other loader with LoadingOverlay by setting
LoadingOverlay component props
|Exit transition duration in ms|
|Provide custom loader|
|Loader component props|
|Sets overlay blur in px|
|Sets overlay color, defaults to theme.white in light theme and to theme.colors.dark in dark theme|
|Sets overlay opacity|
number | "xs" | "sm" | "md" | "lg" | "xl"
|Value from theme.radius or number to set border-radius in px|
|Animation duration in ms|
|If visible overlay will take 100% width and height of first parent with relative position and overlay all of its content|
|Loading overlay z-index|