Gallery
Decoration and visibility use Decoration & visibility (BlockShell).
Gallery or slider with one item list.
presentationswitches gallery/slider;gridSizeandimageModestyle the gallery;autoPlay/autoPlayIntervalcontrol the slider. Item fields stay structural; edit them in the gallery/slider item list.
Fields
localeSpecificImages
Use locale-specific image URLs.
localeSpecificImages: [{ if: "*", is: false }]items
Repeating items in this block.
items: [
{ imageUrl: "https://cdn.example/a.jpg", size: "1x1" }
]appearance
color
textColor
Foreground text color. One authored color leaf: * is light, { theme: "dark" } is dark, and { on } (hover, active, focus, selected) is the interaction.
textColor: [
{ if: [{ theme: "dark" }], is: "#f9fafb" },
{ if: "*", is: "#111827" }
]content
playback
autoPlay
Slider only: advance slides automatically.
content: {
playback: {
autoPlay: [{ if: "*", is: false }]
}
}autoPlayInterval
Unit: ms
Slider only: autoplay interval in milliseconds.
content: {
playback: {
autoPlayInterval: [{ if: "*", is: 6000 }]
}
}layout
presentation
Render as a gallery grid or a slider.
Options: gallery, slider, grid
layout: {
presentation: [{ if: "*", is: "gallery" }]
}gridSize
Gallery only: columns per row.
Options: 2, 3, 4
layout: {
gridSize: [{ if: "*", is: 3 }]
}imageMode
Image fit: cover or contain.
Options: cover, contain, repeat
layout: {
imageMode: [{ if: "*", is: "cover" }]
}Default props
{
"localeSpecificImages": [
{
"if": "*",
"is": false
}
],
"items": [],
"shell": {
"visibility": [
{
"if": "*",
"is": true
}
],
"anchor": {
"anchorId": [
{
"if": "*",
"is": ""
}
],
"anchorKey": [
{
"if": "*",
"is": ""
}
]
},
"pointerEvents": [
{
"if": "*",
"is": "auto"
}
]
},
"layout": {
"presentation": [
{
"if": "*",
"is": "gallery"
}
]
}
}