NG Kit

View Primary Button

The View Primary Button is a primary-styled action for viewing or opening details, pairing an eye icon with primary colour for the main row action. It extends the Base Button.

Usage

Use the button through its directive selector on any element, or through its component selector. The directive form is preferred for new code; the component form remains supported.

html
<button viewPrimaryButton (click)="onView()" mat-raised-button>View</button>

API

A view button with primary emphasis for the main row action, extending the base button. All other base inputs and outputs are inherited.

Inputs

NameTypeDefaultDescription
labelstring'View'Button label text.
iconstring'visibility'Material icon name rendered before the label.
classesstring'btn-primary primary-button'CSS classes applied to the button.