HOC SiteDocumentation

Grid

Decoration and visibility use Decoration & visibility (BlockShell).

Preferred CSS grid for slot children (no cells array). Editor gridLayout writes Authored layout.columns / columnGap / rowGap / alignment leaves. Items control writes itemOrderByChildId, columnSpanByChildId, and rowSpanByChildId keyed by child block id. Email approximates column spans in tables and ignores CSS order / rowspan.

Fields

layout

itemOrderByChildId

Map of child block id → breakpoint id → CSS order. Web-only.

layout: {
  itemOrderByChildId: { "HeadingBlock-1": { mobile: 2, desktop: 0 } }
}

columnSpanByChildId

Map of child block id → breakpoint id → column span (1–12).

layout: {
  columnSpanByChildId: { "HeadingBlock-1": { desktop: 2 } }
}

rowSpanByChildId

Map of child block id → breakpoint id → row span (1–12). Web-only.

layout: {
  rowSpanByChildId: { "HeadingBlock-1": { desktop: 2 } }
}

Default props

{
  "content": [],
  "shell": {
    "visibility": [
      {
        "if": "*",
        "is": true
      }
    ],
    "anchor": {
      "anchorId": [
        {
          "if": "*",
          "is": ""
        }
      ],
      "anchorKey": [
        {
          "if": "*",
          "is": ""
        }
      ]
    },
    "pointerEvents": [
      {
        "if": "*",
        "is": "auto"
      }
    ]
  },
  "layout": {
    "columns": [
      {
        "if": "*",
        "is": 1
      }
    ],
    "columnGap": [
      {
        "if": "*",
        "is": 16
      }
    ],
    "rowGap": [
      {
        "if": "*",
        "is": 16
      }
    ],
    "justifyItems": [
      {
        "if": "*",
        "is": "start"
      }
    ],
    "alignItems": [
      {
        "if": "*",
        "is": "start"
      }
    ],
    "justifyContent": [
      {
        "if": "*",
        "is": "start"
      }
    ],
    "alignContent": [
      {
        "if": "*",
        "is": "start"
      }
    ]
  }
}