For the complete documentation index, see llms.txt. This page is also available as Markdown.

Accordion

Overview

Use Accordion to group related content in sections that users can open as needed. For example, put a product description, specifications and shipping information in separate sections so the description stays easy to find.

Each section is a container for Avonni Dynamic Components. Add Text for a short explanation, or use a Data Table or Map when the content calls for it.

Tutorials

Browse the Accordion tutorials for a guided build and a Preview checklist.

Configuration

Select the Accordion on the canvas to open Edit Accordion. Use Properties to create sections and set how they open.

The Properties tab of the Edit Accordion panel.

Properties

Allow Expansion of Multiple Sections

With this setting off, opening a section closes the previous one. Turn it on when users need to keep several sections open, such as when comparing answers in an FAQ.

Active Section(s)

Select the sections that open when the component loads. In single section mode, only the first selected section opens. To open several by default, enable multiple expansion and select each one.

Active Section(s) also exposes the values of the currently open sections. Other components can use that output as users open or close sections.

An accordion with three sections. The first is expanded, the other two show the collapsed icon.

Items

Under Items, click Add Items to create a section. Enter a visible Label and a unique Value in the dialog, then click Save. Drag the components you need into the section on the canvas.

Setting
Description

Label

The text shown in the section's header.

Value

A unique identifier for the section. It's used by Active Section(s) to control which sections open by default.

Variant

Choose Base for a standard appearance or Shaded for a subtle background effect. Default is Base.

Hide Icon

Hide the expand/collapse icon shown in the section header. When hidden, the icon settings below no longer apply.

Collapsed Icon

The icon displayed when the section is collapsed. Default is utility:chevronright.

Expanded Icon

The icon displayed when the section is expanded. Default is utility:chevrondown.

Position

Place the icon on the Left (default) or Right of the section header.

Size

The icon size: XX-Small (default), X-Small, Small, Medium, or Large.

Help Text

A hoverable help icon beside the section title. Set Content to show it (no icon appears while it is empty), then optionally choose its Icon Name, Variant (Bare by default, Inverse, Warning or Error) and Alternative Text.

Collapsed Icon, Expanded Icon, Position, and Size are only available when Hide Icon is turned off.

The section Variant property. Shaded gives each section header a grey background.
The section icon Position property, Left and Right.

Set Component Visibility

Use Component Visibility to control when the whole Accordion appears.

Styling

Open the Style tab of Edit Accordion to adjust spacing, dimensions and section appearance.

Controls the outer spacing around the entire accordion.

  • Top / Right / Bottom / Left: Adjust the space on each side of the accordion.

Controls the inner spacing between the accordion's content and its border.

  • Top / Right / Bottom / Left: Adjust the inner spacing on each side.

Customizes the border surrounding the accordion.

  • Color: Set the color of the accordion's border.

  • Size: Set the thickness of the accordion's border.

  • Style: Set the border style (solid, dashed, dotted, etc.).

  • Radius: Round the corners of the accordion's border.

Controls the accordion's dimensions.

  • Width / Height: Set fixed dimensions for the accordion.

  • Overflow: Determine how content that extends beyond the set dimensions is handled (scroll, hidden, etc.).

  • Min Width / Max Width / Min Height / Max Height: Constrain the size within bounds.

Sets the accordion's background.

  • Color: Set the background color of the accordion.

Styles each accordion section and its parts.

  • Section: Margin / Padding, Background Color, and Border (color, size, style, radius).

  • Section Header: Margin / Padding, Background Color, and Border (color, size, style, radius).

  • Section Content: Margin / Padding, Background Color, and Border (color, size, style, radius).

  • Section Title: Color, Font Size, Font Style, Font Weight.

  • Section Icon: Background Color, Foreground Color, Foreground Color Hover.

  • Section Icon Border: Color, Size, Style, Radius.

Use Cases

  • Product details. Show the description first and put specifications and shipping terms in their own sections.

  • FAQs. Keep several answers open when readers need to compare them.

  • Guides. Group instructions into steps that users can open in order.

  • Forms. Group related fields into sections such as contact details and preferences.

Last updated

Was this helpful?