Fluent Commerce Logo
Docs

Accordion Component

UI Component

Changed on:

31 Aug 2026

Overview

The Accordion component is a Mystique content component that can expand to show its child components. It is useful for hiding details with the ability to pull it up when needed.
No alt text provided
Plugin NameCore
The standard library of mystique components. 
0000-00-00

v1.0.0

Initial changelog entry.

Alias

fc.accordion

Detailed technical description

Summary and Details

The Accordion is a wrapper with two sections:
  • Summary - always visible
    It can also carry content on the right through `summaryRight`; selecting that right-side content does not expand or collapse the Accordion
  • Details - hidden until the Summary is selected, then expanded below it
Each section accepts plain text, a template expression, or an array of custom components. The Details section also has an object form that lays its components out in a `row` or `column` and toggles inner padding with `indent`.

Behavior

  • Selecting the Summary expands or collapses the Details section; `expandIcon` shows or hides the chevron
  • `expanded` forces the open or closed state, while `defaultExpanded` sets only the initial state
  • `disabled` restricts interaction with the Accordion
  • `detailsElevation` controls whether nested Card components in the Details section keep their own box shadow
It is registered under `category: content`.

Explanation Through an Example

The Summary and Details sections accept plain text, a template expression, or an array of custom components, and content can be placed on the right of the Summary with `summaryRight`:
1{
2    "component": "fc.accordion",
3    "props": {
4        "summary": "Accordion Summary",
5        "details": "Accordion Details"
6    }
7}
1{
2    "component": "fc.accordion",
3    "props": {
4        "summary": "{{someTemplate}}",
5        "details": "{{someTemplate2}}"
6    }
7}
1{
2    "component": "fc.accordion",
3    "props": {
4        "summary": [
5            {
6                "component": "fc.mystique.collapsible.text",
7                "props": {
8                    "text": "Text example",
9                    "charCutoff": 50
10                }
11            }
12        ],
13        "details": [
14            {
15                "component": "fc.mystique.collapsible.text",
16                "props": {
17                    "text": "Text example",
18                    "charCutoff": 50
19                }
20            },
21            {
22                "component": "fc.mystique.collapsible.text",
23                "props": {
24                    "text": "Text example",
25                    "charCutoff": 50
26                }
27            }
28        ]
29    }
30}
1{
2    "component": "fc.accordion",
3    "props": {
4        "summary": "Accordion Summary",
5        "summaryRight": "Summary Right",
6        "details": "Accordion Details"
7    }
8}

Properties

NameTypeRequiredDefaultDescription
`expandIcon``boolean`NotrueDisplays or hides the expand icon in the Summary section
`expanded``boolean`No Forces the opened or closed state of the Accordion
`defaultExpanded``boolean`NofalseSets the initial expanded state of the Accordion
`disabled``boolean`NofalseRestricts interaction with the Accordion
`summary``string` / `MystiqueComponentInstance[]`No Text, template, or an array of custom components displayed in the Summary section
`summaryRight``string` / `MystiqueComponentInstance[]`No 
  • Text, template, or an array of custom components displayed on the right of the Summary section
  • Selecting it does not expand or collapse the Accordion
`details``string` / `MystiqueComponentInstance[]` / `{ components: MystiqueComponentInstance[], direction: "row" / "column", indent: boolean }`No 
  • Text, template, or an array of custom components displayed in the Details section
  • The object form also sets the layout `direction` (`row` by default) and toggles inner padding with `indent` (`true` by default)
`detailsElevation``boolean`Nofalse
  • When enabled, nested Card components in the Details section keep their own box shadow (elevation)
  • When disabled, their shadows are suppressed to avoid visual noise

Configuration example

1{
2    "component": "fc.accordion",
3    "props": {
4        "summary": "Accordion Summary",
5        "details": "Accordion Details"
6    }
7}

Version History

2026-09-07

v26.9.7

The component extension with the `summaryRight` and `detailsElevation` properties.
2024-07-22

v24.7.22

The component extension with the `indent` property.
2024-04-22

v24.4.22

Initial release.

Recommended Placement

None