UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

23 lines (22 loc) 955 B
import { ReactNode } from 'react'; import { ViewPropsBase } from './view-props-base'; /** * If there is custom view it will be rendered. If there is not the children of this component will be rendered * * @param {string | undefined} viewName - Used to identify the custom view. * @param {string} widgetKey - Used in the widget registry as a property name. * @param {ReactNode} children - The children of the component. Used as a fallback if there is no custom view. * @param {any} viewProps - Props that are used for the view component. * @param {any} traceSpan Required param for the trace functionality. * * @returns {ReactNode} - The view for the widget. */ export declare function RenderView({ viewName, widgetKey, children, viewProps, traceSpan }: RenderViewProps): ReactNode; interface RenderViewProps { viewName?: string; widgetKey: string; children: ReactNode; viewProps: ViewPropsBase; traceSpan?: any; } export {};