The preview search widget with menu on the left

The preview search widget template, described in this topic, shows search results based on visitor query and menu options appearing on the left for left-to-right keyboard navigation. Changes in input in the search input field triggers requests to Sitecore Search.

The following sections describe the preview search widget template with menu on the left, 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 preview search 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 per page

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

Default: 6

RequestResponse
<PreviewSearchLeft
	rfkId="rfkid_6"
 	defaultItemsPerPage={12}
/>

Do you have some feedback for us?

If you have suggestions for improving this article,