SearchStax Site Search offers React and Next.js widgets to help you build your custom search page.
The SearchstaxAnswerWidget component provides a React and Next.js AI answer widget for your searches.
Usage
<SearchstaxAnswerWidget
showShowMoreAfterWordCount={100}
feedbackConfig={feedbackConfig}
></SearchstaxAnswerWidget>Props
-
showShowMoreAfterWordCount– number (default 100) that determines after how many words the UI displays a "Read More" view. -
feedbackWidget– an optional object that configures thumbs-up and thumbs-down feedback functionality. -
searchAnswerTemplate– template override as explained below
Example
For a complete example, see sitesearch-ux-react.