# Stack Views

Appstent supports adding multiple content views in a stack container.  The stack can be horizontal (x-axis), vertical (y-axis) or layered (z-axis).

The type of the stack is represented by the value of field `type` as follows:

* "hStack" -- creates a Horizontal Stack View
* "vStack" -- creates a Vertical Stack View
* "zStack" -- creates a z-axis layer stack view

### Scrollable Stack Views

Horizontal and Vertical views can either be created to a certain scrollable width/height or make the stack fill the width/height based on the contained views.  To make the stack views scrollable, set the property `scrollable` to `true`.

Following example shows a scrollable horizontal stack view:

```json
{
    "type": "hStack",
    "scrollable": true,
    "views": [
        {
            "type": "text",
            "text": "Item 1"
        },
        {
            "type": "text",
            "text": "Item 2"
        }
    ]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://appversation.gitbook.io/appstent/content-authoring/collection-views/stack-views.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
