Accordion

A component is used to display an expandable list item.

Adding an Accordion Component

  • Select the Accordion component from the Components drawer. You can open the list of components by clicking the + button next to Components.
  • Select the added component in the Components tree.
  • Go to the Data tab (third 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 (third 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.
ExpandedEnable this option to expand the Accordion Items. It is disabled by default.

Data Properties

PropertyDescription
LabelLabel to display for the Accordion
IconIcon to display for the Accordion
Custom IconRender an icon using a string of the icon's identifier. Overrides the 'icon' property. Full list of icons here. Ex: 'Foundation/align-right', 'Feather/check'

Conditional Display

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