Stack
Lays its children out top to bottom.
Use it for: The default way to arrange things. Use gap in its style for spacing.
- CategoryLayout
- ChildrenAny number
- DataNone
- ActionNone
None. Write "props": {}; the look comes from preset and style.
Every component also accepts id (required, unique on its screen), and the optional preset and style described in Style options.
Example
Section titled “Example”{ "id": "intro", "type": "Stack", "props": {}, "style": { "gap": "$spacing.sm" }, "children": [ { "id": "intro-title", "type": "Text", "props": { "text": "Today" }, "preset": "heading" }, { "id": "intro-body", "type": "Text", "props": { "text": "Three workouts planned." } } ]}