Components Buttons Primary Button

Primary Button

A button styled as the primary action button. The Primary Button extends the Base Button and is styled to stand out as the main action on a page or form. It uses a prominent color and may include an icon.

Usage

Directive (Preferred)
Component
<button ariaLabel="Submit" (click)="onSubmit()" primaryButton>Submit</button>

API Reference

The Primary Button extends the Base Button and overrides below properties for primary button behavior. See Base Button for inherited properties.

Below are the inputs overridden by the Primary Button.

NameTypeDefaultDescription
loadingLabelstring'Saving...'Label to show when loading
labelstring'Save'Button label
iconstring'save'Material icon name to display
showIconbooleanfalseShow/hide icon
classesstring'btn-primary primary-button'CSS classes to apply