@dotcms/react
Version:
Official React Components library to render a dotCMS page.
20 lines (19 loc) • 704 B
TypeScript
import { DotCMSPageContext } from '../../models';
/**
* Props for the Container component.
*
* @export
* @interface ContainerProps
*/
export interface ContainerProps {
readonly containerRef: DotCMSPageContext['pageAsset']['layout']['body']['rows'][0]['columns'][0]['containers'][0];
}
/**
* Renders a Container with its content using information provided by dotCMS Page API.
*
* @see {@link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas}
* @export
* @param {ContainerProps} { containerRef }
* @return {JSX.Element} Rendered container with content
*/
export declare function Container({ containerRef }: ContainerProps): import("react/jsx-runtime").JSX.Element;