Skip to content

Accordion

Accordion is a UI component that allows you to expand and collapse multiple sections. It is mainly used for organizing information and making effective use of screen space.
Added in v4.0.0.

Properties

NoItemInput ValueDefault ValueAction PropertyTypeAction Default ValueDescription
1IDStringAutoidstringAutoThe [id] property cannot be set by actions.
2WidthString600widthstring600Width of the accordion
3HeightString200heightstring200Height of the accordion
4XStringxstring
5YStringystring
6LockBooleanOFFlockbooleanfalseWhen ON, the component stays fixed even when the screen is scrolled.
When OFF, the component moves along with the screen scroll.
Added in v4.1.0.
7VisibilityBooleanOnvisibilitybooleantrue
8ColorString
Color Picker
colorstringText color of the accordion title. If empty, the theme’s Primary Text color is applied.
9BackgroundColorString
Color Picker
backgroundColorstringBackground color of the entire accordion. If empty, the theme’s Background Paper color is applied.
10Multi ExpandBooleanOnmultiExpandbooleantrueIf Off, opening one section will close the others.

Adding Accordion Items

An accordion item refers to a single expandable section within the accordion component.
You can add accordion items to the accordion component by following the steps below.

  1. Open the property dialog of the accordion component.
  2. Click the + icon on the accordion bar in the left pane.
  3. An accordion item will be added to the left pane.