HOC SiteDocumentation

Vertical spacer

Decoration and visibility use Decoration & visibility (BlockShell).

Simple vertical gap. Prefer spacers over stacking empty decorative cards for rhythm.

Examples

{
  "height": [
    {
      "if": "*",
      "is": 24
    }
  ]
}

Fields

height

Unit: px

Spacer height in px. Authored [{ if, is }] with { bp } for per-breakpoint height. Media CSS owns --spacer-height when breakpoint conditions are present.

height: [{ if: [{ bp: "mobile" }], is: 24 }, { if: "*", is: 48 }]

Default props

{
  "shell": {
    "visibility": [
      {
        "if": "*",
        "is": true
      }
    ],
    "anchor": {
      "anchorId": [
        {
          "if": "*",
          "is": ""
        }
      ],
      "anchorKey": [
        {
          "if": "*",
          "is": ""
        }
      ]
    },
    "pointerEvents": [
      {
        "if": "*",
        "is": "auto"
      }
    ]
  }
}