> For the complete documentation index, see [llms.txt](https://docs.zingy.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/button-group.md).

# Button Group

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FynfgZ0w6p4z92VYlFlh3%2Fimage.png?alt=media&amp;token=8519487a-b71d-4e1e-9167-b0603f64ccc1" alt="" width="68"><figcaption><p>Button Group Element</p></figcaption></figure></div>

The **`Button Group`** element allows you to group multiple buttons together. It provides a way to visually organize related buttons and size them as a cohesive unit.

The image below shows examples of button groups:

* Button group with 4 buttons and the *Size* option set to small.
* Button group with 3 buttons and the *Size* option set to large.&#x20;
* Button group with the *Type* option set to vertical.

<figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2Fw4W9jNFT6XzgQbPNBqgD%2Fimage.png?alt=media&amp;token=a8f1bbbf-bb1a-4f53-b4a9-d1d4efff056b" alt=""><figcaption><p>Examples of Button Group elements</p></figcaption></figure>

***

## Options

The [Options tab](/app-editor/page-editor/page-element-settings.md#options-tab) settings for this element are described below:

### `Size`

Set the size of the buttons to override the [Size setting](/app-editor/page-editor/built-in-elements/button.md#button-size) of individual buttons. If the value of this setting is Default, the button group is rendered based on the largest sized button in the group.

### `Type`

By default, a button group is rendered in horizontal orientation. You can also have the button vertically oriented by choosing the Vertical setting.

### `Popup Menu Direction`

When used in the composite [Popup Menu1](/app-editor/page-editor/built-in-elements/popup-menu-style1.md) and [Popup Menu2](/app-editor/page-editor/built-in-elements/popup-menu-style2.md) elements, you can specify the location where the menu opens when clicked.


---

# 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.zingy.ai/app-editor/page-editor/built-in-elements/button-group.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.
