SearchstaxInputWidget React
SearchStax Site Search solution provides React and Next.js widgets to help you build your custom search page.
The SearchstaxInputWidget component provides a search input with autosuggest/autocomplete functionality.
Usage
<SearchstaxInputWidget
suggestAfterMinChars={3}
afterAutosuggest={afterAutosuggest}
beforeAutosuggest={beforeAutosuggest}
></SearchstaxInputWidget>Props
suggestAfterMinChars– Minimum number of characters required to trigger autosuggest. Default:3afterAutosuggest– Callback function invoked after autosuggest results are received. Allows modifying the suggestions.beforeAutosuggest– Callback function invoked before making the autosuggest API call. Allows modifying the request parameters.inputTemplate– template override. See examples in searchstax-ux-react.
Example
For a full example, see searchstax-ux-react.
Questions?
Do not hesitate to contact the SearchStax Support Desk.