Search UI widgets
Search.io comes with a set of easy to integrate search widgets. Learn how to customize the widgets.
Search widgets are discrete blocks of JSON code that utilize the Search.io React SDK to render a variety of search widgets for your website.
Use the Search UI Designer in the Search.io admin console to design your search interface. Once completed, it will generate the code for the search widget to embed in your website.
Configuration
All widgets follow the structure below. The script
tag is wrapped in a div
with the data-widget
attribute specifying the widget.
By default, the script tag will provide you with the latest version of the Search UI Widgets. If you would lock into a particular version you can instead specify the version using our CDN script tag:
<script async src="https://cdn.sajari.com/embed/2.21.2/bundle.js" id="sajari-widgets"></script>
This will lock you into version 2.21.2. A full list of versions is available here: https://github.com/sajari/search-widgets/tags
The following configuration properties are available across all widgets. Generally they contain account and collection details, as well variables, theming information.
Last updated