> 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

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.\
Go to the **Settings** in the right side panel to adjust the accordion options.
{% endstep %}
{% endstepper %}

## **Configure the Accordion component**

In **Settings**, review these basic options first:

* **Label** for the title shown on the component
* **Internal name** is filled automatically. Change it only if needed and carefully. When you script, you use **Internal name**, not **Label**.

Use **Display**

* **Gap** to set the space between accordion sections

For settings with the dynamic value icon, click it to define the value with logic.

{% 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.
