pages-core icon indicating copy to clipboard operation
pages-core copied to clipboard

Make an action button that has a reusable loading state

Open apburnes opened this issue 8 months ago • 0 comments

When a user kicks off an asynchronous action, the button should switch to a disabled loading state while the action is running.

Notes

  • This could be used while a user is deleting a file, kicking off a rebuild, etc

Acceptance Criteria

  • [ ] Takes a function prop for the action
  • [ ] Takes an loading boolean prop

apburnes avatar Mar 11 '25 20:03 apburnes