LayoutComponents
Your component for each layout type a definition's layout uses: { section: Card, row: Grid }. A definition without sections or rows needs none.
ts
interface LayoutComponents {
section?: ComponentType<SectionProps>
row?: ComponentType<RowProps>
}Explanation
See layout components.
SectionProps
SectionPropssectionJsonLayoutSection: the section as writtenchildrenReactNode: the section's items
RowProps
RowPropsrowJsonLayoutRow: the row as writtenspansnumber[]: how many of the 12 columns each cell takeschildren(index: number) => ReactNode: renders the cell atindex