LoadingOverlay
A loading mask for blocking a container or the full screen while async work is running.
LoadingOverlay
Use LoadingOverlay when content should stay visible but temporarily blocked during loading, saving, syncing, or long-running actions.
In-Container Overlay
LoadingOverlay (container)
Demo will load when visible.
Fullscreen Overlay
LoadingOverlay (fullscreen)
Demo will load when visible.
API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
loading | boolean | false | Shows or hides the overlay. |
fullscreen | boolean | false | Teleports the overlay to body and covers the viewport. |
text | string | '' | Optional message displayed below the spinner. |
spinnerSize | number | 18 | Spinner size in pixels. |
background | string | - | CSS background used for the overlay mask. |