How to reuse "Loading" Modal from custom component ?

default discord avatar
florianmsftlast year
1

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

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

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