# Swipe page

## 👉 **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](https://docs.bravostudio.app/data-binding).

**📍 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&#x26;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]`](https://docs.bravostudio.app/bravo-tags/containers/aspect-ratio-relative-to-screen) 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](https://docs.bravostudio.app/data-binding) 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>" %}
