useContentBlock
Use the content block query hook to retrieve appearance information and data required to render a content block.
Request parameters
| Name | Type | Description |
|---|---|---|
widgets | string | String to search for |
category | string | Name of category |
suggestion | string | String for suggestion search |
trendingCategory | string | Name of trending category |
Generic response
Import
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.
If you have suggestions for improving this article, let us know!