Skip to main content

Accordion

The Accordion component is a collapsible container that lets you group and organize components under an expandable/collapsible section with a header. It helps reduce visual clutter by allowing users to show or hide content on demand, making it ideal for building structured layouts, settings panels, and multi-section forms.

Example Usage

A customer support team needs to build a ticket details page where different sections, customer info, order history, internal notes are displayed. Using the Accordion component, each section can be placed inside its own collapsible panel, allowing agents to expand only the section they need, keeping the interface clean and focused.

Properties

Property
Description
Expected Value
Show headerToggles the visibility of the accordion header section, which includes the title area and the expand/collapse chevron.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Events

EventDescription
On expandTriggers when the accordion is expanded.
On collapseTriggers when the accordion is collapsed.
info

Check Action Reference docs to get detailed information about all the Actions.

Component Specific Actions (CSA)

The following actions of the component can be controlled using the component-specific actions (CSA). You can trigger these using an event or through a RunJS query.

Action
Description
How To Access
expandExpands the accordion to reveal its content.components.accordion1.expand()
collapseCollapses the accordion to hide its content.components.accordion1.collapse()
setVisibilitySets the visibility of the component.components.accordion1.setVisibility(false)
setDisableDisables the component.components.accordion1.setDisable(true)
setLoadingSets the loading state of the component.components.accordion1.setLoading(true)

Exposed Variables

Variable
Description
How To Access
isExpandedIndicates if the accordion is currently expanded.{{components.accordion1.isExpanded}}
isVisibleIndicates if the component is visible.{{components.accordion1.isVisible}}
isDisabledIndicates if the component is disabled.{{components.accordion1.isDisabled}}
isLoadingIndicates if the component is loading.{{components.accordion1.isLoading}}

Additional Actions

Action
Description
Configuration Options
Loading stateEnables a loading spinner, often used with isLoading to indicate progress.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
VisibilityControls component visibility.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
DisableEnables or disables the component.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
TooltipProvides additional information on hover. Set a string value for display.String (e.g., Click to expand details.).
Dynamic heightAllows the accordion to automatically adjust its height based on the content inside.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Devices

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Styles

Property
Description
Configuration Options
BackgroundSets the background color of the accordion header.Select the color or click on fx and input code that programmatically returns a Hex color code.
Chevron iconSets the color of the expand/collapse chevron icon in the header.Select the color or click on fx and input code that programmatically returns a Hex color code.
DividerSets the color of the divider line between the header and the content area.Select the color or click on fx and input code that programmatically returns a Hex color code.

Container

Property
Description
Configuration Options
BackgroundSets the background color of the accordion content area.Select the color or click on fx and input code that programmatically returns a Hex color code.
Border colorSets the border color of the accordion.Select the color or click on fx and input code that programmatically returns a Hex color code.
Border radiusModifies the border radius of the accordion.Enter a number or click on fx and enter a code that programmatically returns a numeric value.
Box shadowSets the box shadow properties of the accordion.Select the box shadow color and adjust the related properties or set it programmatically using fx.


Need Help?