PageBlock
A component for displaying a block of content on a page. This should be used inside the PageLayout component.
It should be provided with a column prop to determine which column it should appear in, and a blockId prop
to identify the block.
Example
Parameters
props
Readonly<PageBlockProps>Props used to configure the PageBlock component.
children
React.ReactNodeThe content of the block.
column
'main' | 'side' | 'full'Which column this block should appear in
blockId
stringThe ID of the block, e.g. "gift-cards" or "related-products".
title
React.ReactNode | stringThe title of the block, e.g. "Gift Cards" or "Related Products".
description
React.ReactNode | stringAn optional description of the block.
className
stringAn optional set of CSS classes to apply to the block.
Status: Developer Preview
A component for displaying a block of content on a page that takes up the full width of the page. This should be used inside the PageLayout component.
Parameters
props
Readonly<Pick<PageBlockProps, 'children' | 'className' | 'blockId'>>A component for displaying an auto-generated form for custom fields on a page. This is a special form of PageBlock that automatically generates a form corresponding to the custom fields for the given entity type.
Example
Parameters
props
Readonly<{ column: 'main' | 'side'; entityType: string; control: Control<any, any>; }>