ButterflyPress
Containers & Layout

Stack Container

Vertical or horizontal flex stack with semantic gap and alignment tokens.

Live Semantic Preview

Vertical Stack

Items arranged with gap: sm.

Developer Specifications

{
  "id": "stack-1",
  "type": "stack",
  "value": {
    "direction": "horizontal",
    "gap": "md",
    "align": "center",
    "items": [
      {
        "id": "s1",
        "type": "heading",
        "value": {
          "level": 4,
          "text": "Stacked Item"
        }
      },
      {
        "id": "s2",
        "type": "action_group",
        "value": {
          "actions": [
            {
              "text": "Continue",
              "url": "/docs"
            }
          ]
        }
      }
    ]
  }
}