[@mantine/core] Add new delay props on LoadingOverlay before the loader shown
#8741
Dominic-Preap
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request
Hi, it would be nice to have a
delayprop insideLoadingOverlayto delay the loader before it appears.Is your feature request related to a problem? Please describe
Imagine a scenario where you need a loading state in your view. If the process is slow, showing the loader works fine. However, when the process is very fast, it can cause the UI to flicker because the loading overlay switches between visible and hidden states too quickly.
Having a
delayprop would prevent the loader from appearing for very short operations. If the process completes quickly, the loader would never be shown. If it takes longer than the delay, the loader would then appear.This is why I propose adding an optional
delayorvisibleDelayprop to avoid the flickering effect. A demo video is included below.Example
2026-03-10.14-08-59.mp4
Beta Was this translation helpful? Give feedback.
All reactions