The horizontal recommendation widget template

A horizontal recommendation widget displays recommendations with pagination controls.

Screenshot of a horizontal recommendation widget.

The following sections describe the horizontal recommendation widget template, and contains an API reference, and instructions on how to create code blocks that you can add to the WidgetsProvider in your React project using Search JS SDK for React. The widget uses the search results query hook to request and retrieve data.

To create a widget component, you can choose to use Search UI components CLI, a command line interface, or copy and paste code blocks manually.

Generate or create the component

Important

Remember to adjust the entity model in the widget template to match your implementation.

Plain component

Styled component

CSS styled component

CSS module styled component

Options

Items to display

itemsToDisplay sets the maximum number of items displayed in this component.

Default: 6

RequestResponse
<RecommendationCarousel
	rfkId="rfkid_2"
 	title="Latest news"
 	itemsToDisplay={12}
/>

Do you have some feedback for us?

If you have suggestions for improving this article,