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