pages-core
pages-core copied to clipboard
Make an action button that has a reusable loading state
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