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