---
title: "Widget"
slug: "widget"
abstract: "Details of the generic Widget component in Sitecore Search JS SDK for React."
---
# Widget

`Widget` is a React component that can render all widgets, configured in Sitecore Search.

All the content, styles, and configuration of content personalization widgets, like banner and HTML block widgets, can be accessed in the Sitecore Search user interface. `Widget` can easily render these widgets because it has all the necessary information.

Merchandising widgets require more than just data to render. The layout and styles are defined in widget components. To render them, `Widget` needs to be provided with functional React components.

To instantiate a widget, associate a component with:

- A widget type using the `setWidgetType` method.
- A widget type and a `rfkid` using the `setWidget` method.

## Import path

```js
import { Widget } from '@sitecore-search/react';
```