Blocks
Theme blocks, website builder blocks, the builder layout, and reusable sections
The blocks field on a content type returns a list of the Block union.
Block
A block on a page: a custom-theme block or a website builder block.
Members: BuilderBlock, ThemeBlock.
BuilderBlock
A website builder block. type and variant match the block and variant chosen in the editor.
| Field | Type | Description |
|---|---|---|
anchorId | String | |
children | [BuilderBlock!] | Nested blocks, for container blocks such as groups and sections. |
id | ID | |
props | JSON | The block settings, with the selected variant's settings merged to the top level. |
resolved | JSON | Data the block's server resolver fetched, such as the events of a calendar block. Null for blocks without a resolver. |
type | String | |
variant | String |
BuilderLayout
The website builder header and footer of the site's default layout.
| Field | Type | Description |
|---|---|---|
brand | JSON | Brand tokens of the selected theme: colors, typography and spacing. |
footer | [BuilderBlock!] | |
header | [BuilderBlock!] |
ReusableSection
A reusable section of blocks shared across pages.
| Field | Type | Description |
|---|---|---|
blocks | [Block!] | |
id | ID | |
title | String |
ThemeBlock
A block from a custom Liquid theme. type is the theme block name, for example hero.
| Field | Type | Description |
|---|---|---|
anchorId | String | |
blocks | [Block!] | For a reusable section block: the section's blocks. Empty for other blocks. |
data | JSON | The block settings as a flat object, the same shape Liquid templates read as block. Rich text appears as <key>_html. References are not resolved here, so use fields to follow them. |
field | Field | Arguments: key: String!. |
fields | [Field!] | |
id | ID | |
type | String |