A general purpose search component with optional result display
Most of this components inputs and outputs are fairly self explanatory. The one that might confuse some people is itemTemplates. This crucial input is how we tell the search component how to render our "rich" search results. In order to render out your search results, the search component simply takes the information attached to each SearchItem in your list of searchResults and plugs it in to one of the provided templates. Anything available in the SearchItem.context will be exposed to the template. See "let-user" above. This article does a pretty good job of explaining TemplateRefs and how to use them: https://alligator.io/angular/reusable-components-ngtemplateoutlet/ (However, you should be able to get by just fine simply basing any new work on these stories)
By default all search fields are rounded
If the search field acts more of an input and just so happens you need to search something first, prefer using square corners, which looks similar to other inputs.
Automatically highlight the first search result when results change.
Not for general use. This is only for Messaging search. If you'd like to use this input, make sure you discuss with UI Eng
Not for general use. This is only for browse mobile page. If you'd like to use this input, make sure you discuss with UI Eng
Debounces the emission of the search query after the specified number of milliseconds.
Show options when the user has not entered anything
Determines the direction from which the search component expands.
Not for general use. This is only for browse mobile page. If you'd like to use this input, make sure you discuss with UI Eng.
Increase the result card z-index to callout level. Default: dropdown.
HTML id for the input element.
When true, renders the search inside a full-screen overlay with a blurred backdrop and top-third positioning.
When true, clicking the expandable icon emits onFocus without expanding the inline search bar. Used to hand off to overlay search.
Border radius of the results card.
Render results in normal flow instead of absolute overlay.
Max height of the scrollable results container in pixels.
Limits search results' container height and makes it scrollable.
Show keyboard shortcut hints at the bottom of the overlay. Only visible when overlayMode is active.
Keep existing results card container by default.
Exposes the expanded/collapsed status of the expandable search bar.