Component
Decoration and visibility use Decoration & visibility (BlockShell).
Mounts a reusable page component. The mount owns only
sourceandbindings: it has no layout props. Layout lives in the component document, so change columns, gaps, or direction by reading the component with get_components and saving it with save_component, then editing the inner block'slayout(for examplelayout.columnson a GridListBlock or VariableArrayTemplateBlock). Writingshell.layout.*on the mount saves without error but is never read; get_design_warnings reports design.warning.prop_not_supported_by_block.
Fields
source
pageComponentId
Id of the reusable page component to embed. The mount has no layout props; edit the component document to change its internal grid, columns, or direction.
To change a grid inside the component, call get_components with the component id, then save_component with an op on the inner block. Do not set shell.layout.* on the mount.
source: {
source: { pageComponentId: "site_footer_cta" }
}bindings
variableValues
Fallback input values keyed by component input id. The public page uses these only for inputs that are not listed in bindings.inputMappings. A mapped input always wins.
bindings: {
variableValues: { heading: "Hello" }
}inputMappings
How the host page fills this component's inputs. The public page reads bindings.inputMappings (also accepted as a flat inputMappings prop). Each row is { inputId, source }. source is a dot path on the request scope: requests.<name>.results, requests.<name>.results[].<field>, vars.<variableId>, or route.<param>. bindings.variableValues is only the fallback for inputs that have no mapping.
After the page has loaded, a list or get re-run refreshes every ComponentBlock input whose source starts with requests.<name>. It also refreshes variables written by that request's resultWrites, including an entry[] variable bound to VariableArrayTemplateBlock.
bindings: {
inputMappings: [{ inputId: "images", source: "requests.list_product_images.results" }]
}Default props
{
"shell": {
"visibility": [
{
"if": "*",
"is": true
}
],
"anchor": {
"anchorId": [
{
"if": "*",
"is": ""
}
],
"anchorKey": [
{
"if": "*",
"is": ""
}
]
},
"pointerEvents": [
{
"if": "*",
"is": "auto"
}
]
},
"source": {
"pageComponentId": ""
},
"bindings": {
"inputMappings": []
}
}