Accordion

Display an expandable section of content

How to use

  • Go to the Data tab in the Properties panel and under Setup > Label, add a label on the component to display on the screen.
  • Select a Text or any other component that you want to display as children of the Accordion component.
  • Go to the Data tab in the Properties panel and under Setup > Item Label, add a label on the component to display on the screen.

Style Properties

Style properties allow you to customize the look and feel of the component. Combinations of styles applied to components can be saved as Stylesheets to easily reuse styles throughout your app. Styles can also be set dynamically using Variables. To learn more about all the different styling properties and how they work, take a look at Intro to Styling.

Component-Specific Styles

PropertyDescription
Arrow Icon ColorSet a color for the right-aligned arrow used to open/close the Accordion.
Arrow Icon SizeSet a size for the right-aligned arrow used to open/close the Accordion..
Closed Content ColorSet a color for the label displayed on the Accordion when closed.
Icon SizeSet the size of the left-aligned icon displayed on the Accordion
Expanded Content ColorSet a color for the label displayed on the Accordion when open.

Configuration Properties

PropertyDescription
Component NameTo alter the name of the component. The name is reflected in the Components tree. Defaults to Accordion.

Data Properties

PropertyDescription
LabelLabel to display for the Accordion
IconIcon to display for the Accordion
ExpandedEnable this option to expand the Accordion Items. It is disabled by default

Conditional Display

You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.