Accordion Component
Changed on:
27 June 2024
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.
| Plugin Name | Core |
|---|
Alias
fc.accordion
Detailed technical description
- Plain text
- Template
- Set of components
Properties
| Name | Type | Required | Default | Description |
| expandIcon | `boolean` | No | true | Displays or hides the expand icon in the Summary section. |
| expanded | `boolean` | No | Forces opened or closed state of the Accordion component. | |
| defaultExpanded | `boolean` | No | false | Indicates a predefined state of the Accordion component, allowing change it. |
| disabled | `boolean` | No | false | Restricts interaction with the Accordion component. |
| summary | `string` / `MystiqueComponentInstance[]` | No | Text, template, or an array of custom components to be displayed in the Summary section. | |
| details | `string` / `MystiqueComponentInstance[]` / `{components: MystiqueComponentInstance[], direction: "row" / "column"}` | No | Text, template, or an array of custom components to be displayed in the Details section. | |
| indent | `boolean` | No | true | Padding switcher, which allows removal of the extra padding in the Details section when using nested components. |
Configuration example
1{
2 "component": "fc.accordion",
3 "props": {
4 "summary": "Accordion Summary",
5 "details": "Accordion Details"
6 }
7}Version History
See previous versions