@dotcms/react
Version:
Official React Components library to render a dotCMS page.
20 lines (19 loc) • 686 B
TypeScript
import { DotCMSPageContext } from '../../models';
/**
* Props for Column component to render a column with its containers.
*
* @export
* @interface ColumnProps
*/
export interface ColumnProps {
readonly column: DotCMSPageContext['pageAsset']['layout']['body']['rows'][0]['columns'][0];
}
/**
* Renders a Column with its containers 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 {ColumnProps} { column }
* @return {JSX.Element} Rendered column with containers
*/
export declare function Column({ column }: ColumnProps): import("react/jsx-runtime").JSX.Element;