> 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>
