A button component that supports a loading state.
The props for the button.
The rendered button element.
This component wraps the native HTML <button> element and adds a loading state. When loading is true, the button becomes disabled and displays a Pulse loading indicator. The default type is "submit" if not specified.
<button>
loading
Pulse
type
<Button onClick={handleClick}>Click me</Button> Copy
<Button onClick={handleClick}>Click me</Button>
<Button loading={isLoading}>Saving...</Button> Copy
<Button loading={isLoading}>Saving...</Button>
A button component that supports a loading state.