# Expandable Section

<figure><img src="/files/u2OFxXUBjOj4ByPqStAu" alt="" width="375"><figcaption></figcaption></figure>

## Tutorials

| Name                                                                                                                                        | Description                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [**How to add components into an expandable section**](/flow/tutorials/components/expandable-section/create-dynamic-expandable-sections.md) | Learn to configure the expandable section to add other components into a section. |

## Configuring the Expendable Section

### Making the Expandable section `Closed` and/or `Collapsible`

By making it **`Collapsible`**, a chevron button icon will be added to expand the section content.

The Closed attribute makes the expandable section closed by default. The user must click on the section's title to open and view the content.

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

***

### Choosing a variant

The variant attribute defines the appearance of the expandable section header. However, the section header styling can be overridden by customizing styling settings from the [Style panel](/flow/component-builder/style-panel.md).

<figure><img src="/files/WIeMDemJNj4oxkt0LIZk" alt=""><figcaption><p>Base variant</p></figcaption></figure>

<figure><img src="/files/uvrVhEKQWSIrnlim8Ch0" alt=""><figcaption><p>Shaded Variant</p></figcaption></figure>

***

### Adding Content

Title and Content attributes can be filled manually or by selecting any available flow resources.

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

***

## Adding Progress and Tags

The Expandable Section component offers additional features to enrich your content visually:

* **Progress Indicators:**
  * Visually display progress using either a circle or bar format.
  * Enter the progress value manually or map it to a flow variable for dynamic updates.
  * Customize the appearance with various UI settings.
* **Tags:**
  * Add descriptive tags to categorize or highlight information.
  * Choose from different visual styles (variants) for the tags.
  * Add tags manually or populate them from a flow variable.

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

## Adding Interactions

You can make your Expandable Section interactive by adding actions that trigger when users click on them. Here's how:

1. **Add an Action Button:** Create a button within your Expandable Section.
2. **Configure the Action:** In the "Action Click" interaction, define what should happen when clicking the button. You can navigate to a specific record page, open a modal, or trigger other actions.

This allows you to build more engaging and dynamic user interfaces within your flows.

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

## Styling the Expandable Section

The Styles panel offers two options to personalize the appearance of your Expandable Section:

* **Base:** Adjust the default look of the section, including background, borders, and text.
* **Shaded:** Apply a subtle background shading to the section for a visual distinction


---

# 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.avonnicomponents.com/flow/flow-components/expandable-section.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.
