HOC SiteDocumentation

List

Decoration and visibility use Decoration & visibility (BlockShell).

Preferred flex layout for slot children (no columns array). Store Authored layout leaves under layout: direction, gap, justify, align, and wrap as bare values or [{ if, is }]. The editor listLayout control writes those leaves — not breakpoint-keyed maps. Use Item order (itemOrderByChildId) to change child CSS order by breakpoint without moving blocks in the canvas. Direction defaults to row when unset: for a stack set layout.direction to [{ if: "*", is: "column" }], and for a responsive split use [{ if: [{ bp: "mobile" }], is: "column" }, { if: "*", is: "row" }]. Child flex sizing is opt-in on each child's shell.box.size.flex leaves (grow / shrink / basis) and min width/height on shell.box.size — omit to keep today's sizing. Prefer grow 1 + basis auto over complementary percentages when one child should take leftover space. Grid keys (columns, columnGap, rowGap, justifyItems, *SpanByChildId) are NOT FlexListBlock props — use GridListBlock for a grid; a card is a GridListBlock cell wrapping a column FlexListBlock.

Fields

layout

direction

Authored flex direction (row | column | row-reverse | column-reverse). Bare string or [{ if, is }].

layout: {
  direction: [{ if: [{ bp: "mobile" }], is: "column" }, { if: "*", is: "row" }]
}

gap

Authored gap in px. Bare number or [{ if, is }].

layout: {
  gap: [{ if: [{ bp: "mobile" }], is: 12 }, { if: "*", is: 24 }]
}

itemOrderByChildId

Map of child block id → breakpoint id → CSS order. Omitted ids keep source order. Web-only (email keeps DOM order).

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

alternateRowDirection

Authored row direction flip for repeated children. Use boolean true/false or [{ if, is }] with { bp } conditions. Example: [{ if: [{ bp: "mobile" }], is: false }, { if: "*", is: true }] for image-first on mobile and alternating on desktop.

layout: {
  alternateRowDirection: [{ if: [{ bp: "mobile" }], is: false }, { if: "*", is: true }]
}

Default props

{
  "content": [],
  "shell": {
    "visibility": [
      {
        "if": "*",
        "is": true
      }
    ],
    "anchor": {
      "anchorId": [
        {
          "if": "*",
          "is": ""
        }
      ],
      "anchorKey": [
        {
          "if": "*",
          "is": ""
        }
      ]
    },
    "pointerEvents": [
      {
        "if": "*",
        "is": "auto"
      }
    ]
  },
  "layout": {
    "gap": [
      {
        "if": "*",
        "is": 8
      }
    ],
    "justify": [
      {
        "if": "*",
        "is": "center"
      }
    ],
    "align": [
      {
        "if": "*",
        "is": "center"
      }
    ],
    "wrap": [
      {
        "if": "*",
        "is": "nowrap"
      }
    ]
  }
}