NG Kit

Search Button

The Search Button triggers search or filter actions and is styled with a magnifier icon. It extends the Base Button and is available as the searchButton directive.

Usage

Use the button through its directive selector on any element (for example, primaryButton on a <button>).

html
<button ariaLabel="Search" (click)="onSearch()" searchButton mat-raised-button>Search</button>

API

Extends the base button, styled for search / filter triggers. All other base inputs and outputs are inherited.

Inputs

NameTypeDefaultDescription
labelstring'Search'Button label text.
iconstring'search'Material icon name rendered before the label.
loadingLabelstring'Searching...'Text shown while loading is true.
classesstring'btn-primary primary-button'CSS classes applied to the button.