Components Buttons Success Button

Success Button

A button styled to indicate a successful or positive action. The Success Button extends the Base Button and is styled with a success color, typically green. It is used for actions that result in a positive outcome.

Usage

Directive (Preferred)
Component
<button ariaLabel="Success" (click)="onSuccess()" successButton>Success</button>

API Reference

The Success Button extends the Base Button and overrides below properties for success behavior. See Base Button for inherited properties.

Below are the inputs overridden by the Success Button.

NameTypeDefaultDescription
loadingLabelstring'Updating...'Label to show when updating
labelstring'Update'Button label
iconstring'save'Material icon name to display
classesstring'success-button'CSS classes to apply