@dotcms/react
Version:
Official React Components library to render a dotCMS page.
19 lines (18 loc) • 745 B
TypeScript
import { ReactNode } from 'react';
import { DotCMSPageAsset, DotCMSPageRendererMode } from '@dotcms/types';
interface DotCMSPageProviderProps {
page: DotCMSPageAsset;
components: Record<string, React.ComponentType<any>>;
mode: DotCMSPageRendererMode;
slots?: Record<string, ReactNode>;
children: ReactNode;
}
/**
* @internal
*
* Client boundary that provides the DotCMS page context to the layout tree.
* Keeping this separate from DotCMSLayoutBody allows the layout to remain
* a server component while only the context provider runs on the client.
*/
export declare function DotCMSPageProvider({ page, components, mode, slots, children }: DotCMSPageProviderProps): import("react/jsx-runtime").JSX.Element;
export {};