Accordion

Accordion

This doc is about the Accordion element, which is used to group content into collapsible items, usually FAQs. It covers structure, advanced settings, and styling by state.

Mosaic Accordion element showing collapsible FAQ-style headings

The Accordion element is typically used in FAQs or any section with lots of text. It groups content into collapsible headings so visitors can open only what they need, keeping pages tidy and easy to scan, especially on mobile. They’re great for housing secondary details.

Structure

Mosaic Accordion scope view showing its default structure

After entering the Accordion’s scope, you’ll find that by default, it’s made up of the following elements.

Item

The Accordion holds the Items that show/hide their associated content. By default, you get two Items, each with a Title and Content. The Title includes a Heading 6 and plus/minus Icons, the Content contains a Paragraph. You can customize both anytime and add, remove, or rearrange elements from the Add panel.

Toolbar actions

Mosaic Accordion toolbar showing the Add icon button
  • Add icon: Select the Accordion or any Item, then click the Add icon to insert a new Item.

Advanced tab settings

Mosaic Accordion element advanced tab settings showing options to configure behavior
  • Open mode: Choose Multiple to allow several items open at once, or Single to keep only one open.
  • Opened first item: Turn this on to have the first item open by default. When enabled, you can choose whether it’s always open or only open on initial load.
Accordion settings panel with the Opened first item toggle enabled, allowing the first item to be open by default always
  • Animation: Choose Slide to animate item open/close, or None for no animation.

Additional elements

Loop items

Mosaic Accordion with dynamic data enabled, showing one template Item used to automatically generate and update multiple items

It allows you to pull data dynamically, automatically updating your content. You’ll define a single Item that acts as the template, and all subsequent items will be generated based on this template. For more details on its settings, check out the Loop documentation.

Additional states

Use the state selector to style Items and their child elements by state. For example, customize the look of an opening or opened Item and its child elements. For details on how states work, see the Class system documentation.

FAQ

Last updated: September 8, 2025

Still have more questions? Let us help!

We use cookies to improve your experience, analyze traffic, and personalize content. By clicking "Accept all" you agree to storing them on your device. Read our privacy policy.

Accept all
Reject all