> For the complete documentation index, see [llms.txt](https://docs.bravostudio.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bravostudio.app/bravo-tags/pages/swipe-page.md).

# Swipe page

Add a component with a vertical swipe effect

## 👉 **The Tag** <a href="#the-tag" id="the-tag"></a>

Creates a horizontal or vertical **swipe component**, which occupies the whole app screen. The list of elements in the component can be created in the design file, or created dynamically with [API data](/data-binding/data-binding-types.md).

**📍 Where to add the tag:** A top-level app page.

```
[page-swipe:vertical] -> vertical slide effect
[page-swipe:horizontal] -> horizontal slide effect
```

![](https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2FINQsXsf6UuVm7DePpWEg%2FScreen-Recording-2024-06-26-at-16.11.00.gif?alt=media\&token=6fe24c7e-e85b-4034-9b9a-80b95420aab5)

## 🏷️ **How to add the tag** <a href="#how-to-add-the-tag" id="how-to-add-the-tag"></a>

1\. Create a screen design for the vertical swipe. Add the `[page-swipe:vertical]` or `[page-swipe:horizontal]` tag to the top-level app screen component.

![](https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2F1sqy46HwoPqoGaUQpUyG%2FSwipe%20page.jpg?alt=media\&token=33cfb092-5aef-48e4-a442-cd50a748f45c)

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2F59XYkOkmiV6cBRkz4ldP%2FSwipe%20page-2.jpg?alt=media&amp;token=159d488c-2fb6-4d6b-8649-ce2effa95ba8" alt=""><figcaption></figcaption></figure>

2\. Create a single `[container]` element covering the whole screen and wrapping all the individual UI elements of the swipe component (images, texts...). Add the [`[aspectratio:screen]`](/bravo-tags/containers/aspect-ratio-relative-to-screen.md) tag to the container, to avoid undesired scrollings in devices with smaller screens.

![](https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2FjAgnsOlYA1rYgFip4rgZ%2FSwipe%20page-1.jpg?alt=media\&token=15d8e892-e9a4-4754-9cc7-d623c1654d68)

3\. If you want to have a **static list** (created in the design file) for the swipe component, create several containers with the corresponding UI elements, and put them one on top of another.

4\. If you want to **populate the list dynamically with API data**, create a single container with all the UI elements that will be bound to data. Then, in the [data binding](/data-binding/data-binding-types.md) section, bind the container and the UI elements to the corresponding list data items.

## 🎨 Example design file

{% embed url="<https://www.figma.com/community/file/1125815853125858367>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bravostudio.app/bravo-tags/pages/swipe-page.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
