How to reuse "Loading" Modal from custom component ?

default discord avatar
florianmsft10 months ago

When clicking the save buttons in the Edit view, and it takes a while, we get a nice modal / overlay ("Loading..") until the process completes.

I'm building my custom component that includes a button, and on click may trigger a long running operation.

How can I reuse the Payload loading component, so that we maintain UX consistency ?

Star on GitHub


Chat on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.