> For the complete documentation index, see [llms.txt](https://docs.cwicly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cwicly.com/blocks/accordion/basics.md).

# Basics

## Description

An accordion block is a header that when clicked by the user, reveals hidden content.

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

The accordion block is usually used to display "text heavy" content such as FAQs (frequently asked questions) or to manage the display of different content in your page without crowding the user's viewpoint.

## Modify

You can modify and personalise the appearance of your accordion block using the properties in the primary tab: settings, colours, layout, typography, margins and padding.

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

The accordion block is very versatile and can be added to [`query`](/blocks/query.md), [`repeater`](/blocks/repeater.md) and [`taxonomy terms`](/blocks/taxonomy-terms.md) blocks.

## Header and Content

By default, the accordion block comes with an accordion headerblock (containing a heading)`and`an accordion content block (containing a paragraph) so you can visually see the accordion block in the editor.&#x20;

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

{% hint style="danger" %}
The `heading` block and the `paragraph` block can be replaced by any other block.
{% endhint %}

{% hint style="info" %}
If you click on the accordion heading, the content appears in the editor.
{% endhint %}

## Add

* Select a block that can receive an accordion block.
* Click the "+" icon in the Quick Inserter.
* Search for the <img src="/files/sHJscThWb2nW7KToY5IY" alt="" data-size="line"> accordion block&#x20;
* Click the accordion icon to insert an accordion block into your parent block.

You will now see that the Accordion block has been inserted and is made up of the Accordion Header and Accordion Content block.

<figure><img src="/files/7LCxYqjYMsb00S9R6JyU" alt=""><figcaption></figcaption></figure>


---

# 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.cwicly.com/blocks/accordion/basics.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.
