The SearchBox headless controller offers a high-level interface for designing a common search box UI controller with highlighting for query suggestions.
SearchBox
Example: search-box.fn.tsx
Clears the search box text and the suggestions.
Selects a suggestion and calls submit.
submit
The string value of the suggestion to select
Shows the suggestions for the current search box value.
Deselects all facets and triggers a search query.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
Updates the search box text value and shows the suggestions for that value.
The string value to update the search box with.
The state of the SearchBox controller.
The
SearchBox
headless controller offers a high-level interface for designing a common search box UI controller with highlighting for query suggestions.Example: search-box.fn.tsx