HOC SiteDokümantasyon

Interactive wrapper

Decoration and visibility use Dekorasyon ve görünürlük (BlockShell).

Clickable wrapper around a content slot (link, external, modal, theme, etc.). When children are icon-only (e.g. SVG SingleImage), set ariaLabel so screen readers get a name. Theme action defaults to a localized “Theme” label. Modal toggles set aria-expanded.

Fields

ariaLabel

Accessible name for the wrapper control when children lack visible text.

ariaLabel: [{ if: "*", is: "Instagram" }]

action

action

See shared option catalog action.

Options: navigate, copyEntryLink, shareSocial, websiteUserSignOut, notifications, updateVariables, runRequest, runMutation, modal, locale, theme, requestNextPage, requestPrevPage, sliderPrev, sliderNext, sliderGoTo, consentCookies, consentPush, consentAll

action: [{ if: "*", is: "navigate" }]

modalId

When action is modal, the target ModalBlock’s stable props.id.

action: {
  modalId: [{ if: "*", is: "ModalBlock-abc123" }]
}

Default props

{
  "shell": {
    "visibility": [
      {
        "if": "*",
        "is": true
      }
    ],
    "anchor": {
      "anchorId": [
        {
          "if": "*",
          "is": ""
        }
      ],
      "anchorKey": [
        {
          "if": "*",
          "is": ""
        }
      ]
    },
    "pointerEvents": [
      {
        "if": "*",
        "is": "auto"
      }
    ]
  },
  "action": {
    "kind": [
      {
        "if": "*",
        "is": "navigate"
      }
    ],
    "openInNewTab": [
      {
        "if": "*",
        "is": false
      }
    ]
  }
}