# Page tabs

Toggle content inside a page without needing to replicate screens. Page tabs can be used either as an extra navigational hierarchy that complements the main bottom menu or you can also use it to navigate content with buttons inside a page.

<figure><img src="/files/FypDXeRir9r9i5mlBNKk" alt=""><figcaption></figcaption></figure>

## 👉 **The Tags**

This component requires the following tags:

* <mark style="color:red;">**`[container:tabs]`**</mark>: this tag creates a special [container](/set-up-design/setting-up-your-design-file/the-container.md) element, wrapping up both the tabs control and the content of the segmented tabs. It needs to be added in the [**2nd level laye**](/set-up-design/setting-up-your-design-file/structuring-the-design-the-layer-hierarchy.md)**r** in the design file and its size shouldn't be bigger than the main screen.
* <mark style="color:red;">**`[container:tabs-controls]`**</mark>: a special container inside the <mark style="color:red;">`[container:tabs]`</mark> element. It will contain the tabs controller to switch between the different segmented tabs. It needs to be aded in the [**3rd level layer**](/set-up-design/setting-up-your-design-file/structuring-the-design-the-layer-hierarchy.md) in the design file.
* <mark style="color:red;">**`[container:tabs-content]`**</mark>: a special container inside the \[container:tabs] element. It will be used for the content for the segmented tabs. It needs to be aded in the [**3rd level layer**](/set-up-design/setting-up-your-design-file/structuring-the-design-the-layer-hierarchy.md) in the design file.

## 🎨 Design setup

1. Create the tabs controller, using a [stateful component](/bravo-tags/components/stateful-component-like-button.md) to create the buttons and different states (default and active). Create a <mark style="color:red;">`[container:tabs-controls]`</mark> around the buttons.
2. Create a frame that takes the space for the segmented tabs content. Add the <mark style="color:red;">`[container:tabs-content]`</mark> tag in this element.
3. Surround all these elements with a <mark style="color:red;">`[container:tabs]`</mark> element, located in the second-level layer.

<figure><img src="/files/yCrEl1gaOo2npqUnTel8" alt=""><figcaption></figcaption></figure>

4\. Finally, to create the content for the segmented tabs, create separate screens with the content you want to display, and create prototyping links from the buttons in the controller to these pages. You can [bind API data](/data-binding/data-binding-types.md) to the pages as well.

<figure><img src="/files/XUjFe2PBiwvlIKifSx44" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Please note that the `refresh:pull` tag is currently not supported within a Tabs Container on Android devices.
{% endhint %}

## 💾 Example file

Duplicate this file below to see how to set it up!

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


---

# 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://docs.bravostudio.app/bravo-tags/pages/page-tabs.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.
