LoadingOverlay
An overlay with centered loader
Source
LLM docs
Docs
PackageIcon
Usage
LoadingOverlay renders an overlay with a loader over the parent element with relative position.
It is usually used to indicate the loading state of forms.
Note that elements under the overlay are still focusable with the keyboard, so remember to add additional logic to handle this case.
The LoadingOverlay rendering is controlled by the visible prop:
Loader props
You can pass props down to the Loader component with loaderProps:
Custom inline loaders
To replace the default loader with any custom content, set loaderProps={{ children: <div>Your content</div> }}.
You can put any React node inside loaderProps.children: