HTMLBlockWidget

HTMLBlockidget is a React component that renders a HTML block widget, configured in Sitecore Search Customer Engagement Console (CEC).

Import path

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

Example

RequestResponse
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>
    )
};

Do you have some feedback for us?

If you have suggestions for improving this article,