Page cover image

Expandable Section

An expandable section gives a hierarchy to a page.

Overview

The Expandable Section component, also known as an Accordion, allows the user to hide or show content within a section of the interface. It typically consists of a title or header and a content area that is initially hidden and can be revealed by clicking on the title. When the content is revealed, it expands to display the information contained, which can be hidden again by clicking on the title.

Tutorials

NameDescription

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.


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.

Base variant
Shaded Variant

Adding Content

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


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.

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.

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

Last updated