usePreviewSearch
Use the preview search query hook to request and retrieve data for preview search widgets.
Request parameters
Request parameters
|
Name |
Type |
Description |
|---|---|---|
|
|
string |
String to search for. |
|
|
string |
Name of category |
|
|
string |
String for suggestion search. |
|
|
string |
Name of trending category |
Generic response
Generic response
Import
Import
Example
Example
Note
Convert a UI component into a widget component before adding it to pages.
To convert a component into a widget component, pass the UI component to the widget or setWidget function.