Basker Docs

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.

FieldTypeDescription
anchorIdString
children[BuilderBlock!]Nested blocks, for container blocks such as groups and sections.
idID
propsJSONThe block settings, with the selected variant's settings merged to the top level.
resolvedJSONData the block's server resolver fetched, such as the events of a calendar block. Null for blocks without a resolver.
typeString
variantString

BuilderLayout

The website builder header and footer of the site's default layout.

FieldTypeDescription
brandJSONBrand tokens of the selected theme: colors, typography and spacing.
footer[BuilderBlock!]
header[BuilderBlock!]

ReusableSection

A reusable section of blocks shared across pages.

FieldTypeDescription
blocks[Block!]
idID
titleString

ThemeBlock

A block from a custom Liquid theme. type is the theme block name, for example hero.

FieldTypeDescription
anchorIdString
blocks[Block!]For a reusable section block: the section's blocks. Empty for other blocks.
dataJSONThe 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.
fieldFieldArguments: key: String!.
fields[Field!]
idID
typeString

On this page