UNPKG

@dotcms/react

Version:

Official React Components library to render a dotCMS page.

24 lines (23 loc) 849 B
import { DotPageAssetLayoutRow } from '@dotcms/types'; /** * @internal * * Props for the Row component * @interface DotCMSRowRendererProps * @property {DotPageAssetLayoutRow} row - The row data to be rendered */ type DotCMSRowRendererProps = { row: DotPageAssetLayoutRow; /** 1-based section index used as the `id` anchor for editor scroll-to-section. */ index: number; }; /** * This component renders a row with all it's content using the layout provided by dotCMS Page API. * * @see {@link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas} * @category Components * @param {React.ForwardedRef<HTMLDivElement, DotCMS>} ref * @return {JSX.Element} Rendered rows with columns */ export declare const Row: ({ row, index }: DotCMSRowRendererProps) => import("react/jsx-runtime").JSX.Element; export {};