> For the complete documentation index, see [llms.txt](https://docs.ninox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ninox.com/builder-hub/visualize-and-organize-your-data/create-and-customize-pages/accordion-component.md).

# Accordion component

Organize longer page content into expandable sections.

Use an **Accordion** component to keep sections collapsed until users open them. An accordion component helps you shorten long pages and hide optional detail until it is needed.

## **Add an Accordion component to a page**

{% stepper %}
{% step %}
**Open the Add tab**

In the **Settings** panel, open **Add**.
{% endstep %}

{% step %}
**Add Accordion**

Under **Layouts**, drag **Accordion** to the preferred location on the page.
{% endstep %}

{% step %}
**Create the sections**

Use **+ Add section** to add a new accordion section.\
Rename each section so users know what it contains.
{% endstep %}

{% step %}
**Add content to each section**

Drag the views, charts, text, or buttons into the open section **Container**.\
Use the resize handles to adjust the added components' size.\
Open **Settings** in the right-side panel to adjust the accordion options.
{% endstep %}
{% endstepper %}

## Configure the Accordion component

In **Settings**, configure these basic options:

* **Label** sets the component title.
* **Internal name** is filled automatically. Change it only when needed. Use the **Internal name** in scripts, not the **Label**.

In **Display**, configure the component appearance:

* **Type** sets section dividers to **Default**, **Shadow**, **Bordered**, or **Split**.
* **Background** sets the accordion’s outer background color.
* **Gap** sets the space between sections.
* **Compact** reduces the component’s screen space.

For settings with the dynamic value icon, select the icon to define a value with logic.

Each **Accordion section** is a separate [**Container** component](/builder-hub/visualize-and-organize-your-data/create-and-customize-pages/container-component.md) that you can configure independently.

{% hint style="info" %}
To remove a component from a page, select the component, then click <i class="fa-trash-can">:trash-can:</i> **Delete component** in the blue menu above it.
{% endhint %}


---

# 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 dynamically by asking a question.

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

```
GET https://docs.ninox.com/builder-hub/visualize-and-organize-your-data/create-and-customize-pages/accordion-component.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
