- Components
BannerWidget
BannerWidget is a React component that renders a banner widget, configured in the Sitecore Search interface.
Import path
Example
If you have suggestions for improving this article, let us know!
BannerWidget is a React component that renders a banner widget, configured in the Sitecore Search interface.
import { BannerWidget } from '@sitecore-discover/react';import { WidgetsProvider, BannerWidget } from "@sitecore-discover/react";
const MyApp = () => {
return (
<WidgetsProvider
env='<environment>'
customerKey='<customer key>'
apiKey='<api key>'
>
<BannerWidget rfkId="<rfkid_banner>" />
</WidgetsProvider>
)
};