Skip to content

Make an action button that has a reusable loading state #4747

Description

@apburnes

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

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions