Get started

This article will cover the follow

  1. What are the accordion components?
  2. Why use the accordion components?
  3. How to use the accordion components
  4. Options of the accordion component
  5. FAQ’s

What are the accordion components?

Accordions refer to content areas that expand when clicked. Widely used in web and mobile design, accordions are particularly suitable for mobile apps, given the limited screen space on mobile devices. 

In Fliplet, accordions are created using two components, namely:

  1. Accordion Heading
  2. End of Accordion Group

Accordion headings group content together. In your app, accordions will show the headings initially.  When you click the heading, it expands and displays the content found below the heading. Other Fliplet components can be used to display content in an accordion. 

End of Accordion Group is typically used at the bottom of a group of Accordion Headings, separating the group from other content sections. They can also be used to divide several accordion headings into separate groups of independent collapsible sections.

Why use the accordion components?

Accordions are used for hiding and expanding content in your app. They are useful for various reasons, including:

  1. Adding lengthy pieces of static content such as a privacy notice and descriptions of things that can be shortened.

  2. Highlighting different sections of a screen without having all the details visible at once. This leaves the user with the option to expand the sections depending on their interests.

There are many other areas where you can use accordions. You should be able to determine what these are as you go about designing and developing your app.

How to use the accordion components

Options of the accordion components

The option below is only available to the Accordion Heading component. It’s just a single option since you have to insert your content directly below the Accordion Heading title. The End of Accordion Group component does not have any options as it only serves to group one or more accordions together. Be sure to add both components to have your accordion function correctly.

Accordion title (Accordion Heading only)

The name that will be displayed on the Accordion on the app screen

FAQs

  1. How to add an accordion inside of another accordion
    1. Add all of your accordions as per usual (drag and drop them on the screen)
    2. Open the developer options using the toolbar on the right and look at the screen html
    3. Find the accordion components that you want to have nested
    4. Around that specific accordion and its content, you need to add a custom div that wraps around it
    5. The custom div will create the nested accordion area – any accordions within the div will be nested 
    6. For this example, accordion 2 and 3 will sit inside accordion 1
Was this article helpful?
YesNo