Expandable component
The Expandable component serves as a container for multiple Expandable panels. Within each panel, you can place components that remain hidden until the user clicks to expand them. You can add multiple Expandable panels within a single Expandable component, allowing for an organized user experience.
The Expandable component is a container in which you place Expandable panels. In the Expandable panel you can have the following components:
- Chart component
- Experience fragment
- Image component
- Layout container
- Rich Text Editor component
Best Practice
Glossary
- Headline
- Expandable component
- Rich text editor
FAQ
Additional information
In the Expandable panel you can insert below component:
- Chart component
- Experience fragment
- Image component
- Layout container
- Rich Text Editor component
Configuration in AEM
To begin, insert the Expandable component. This acts as a container where you can place the Expandable panels.
Insert an Expandable panel inside the Expandable component.
There are two fields of information and settings.
Panel title
Required field. The title that is displayed in the panel. This text is not coded as a heading and should not be used as one. For accessibility and SEO purposes, it is essential to include a properly coded heading.
Title tag
The editor can set a heading level for the expandable panel title.
Available heading levels:
- H2 (default)
- H3
- H4
Title anchor
Fill in anchor name if you want to link to this expandable.
Use as FAQ
When using the Expandable component for an FAQ, it is essential to tick the "Use as FAQ" option and include only text in inside the component. This ensures proper display in Google search FAQs.
Open panel on page load
The default setting is "No," meaning the panel will be collapsed when the page loads. In most cases, it's recommended to keep this setting as "No".
- Insert components inside the Expandable panel by clicking on plus sign (+) on "Drag components here" container.
- You can add multiple components within a single panel.
Note: Be sure to configure (add the panel title) the Expandable panel before inserting any components.
You can insert following components inside the Expandable panel:
- Chart component
- Experience fragment
- Image component
- Layout container
- Rich Text Editor component
Once you've finished with the first panel, simply insert a new Expandable panel component within the same Expandable component, by clicking on plus sign (+) on "Drag components here" container.