---
title: "HTMLBlockWidget"
slug: "htmlblockwidget"
abstract: "Details of the HTMLBlockWidget component in Sitecore Search JS SDK for React."
---
# HTMLBlockWidget

`HTMLBlockidget` is a React component that renders a HTML block widget, configured in the Sitecore Search interface.

## Import path

```js
import { HTMBlockWidget } from '@sitecore-discover/react';
```

## Example

```js
import { WidgetsProvider, HTMLBlockWidget } from "@sitecore-discover/react";

const MyApp = () => {
    return (
        <WidgetsProvider
                env='<environment>'
                customerKey='<customer key>'
                apiKey='<api key>'
            >
            <HTMLBlockWidget rfkId="<rfkid_html_block>" />
        </WidgetsProvider>
    )
};
```