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 a component only (there is no directive form).

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
<search-button ariaLabel="Search" (click)="onSearch()"></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.