LogoLogo
HomepageYouTube ChannelInstall from the AppExchange
  • Home
  • Dynamic Components
  • Flow Components
  • Experience Components
  • Projects
  • 👋Welcome
  • Getting Started
    • Product Tour
    • Quickstart Tutorial
    • Understanding The Essentials
      • Component Builder
      • Component Visibility
      • Target Page Object
      • Using Variables and Component Data
      • Publishing your Dynamic Components
      • Dynamic vs. Flow Components
    • Avonni Components App
      • Accessing the App
      • Folders
      • Templates
      • Version management
    • AppExchange Listing Page
    • Installation & Licenses Management
  • Tutorials
    • Projects
    • Components
      • Calendar
        • How to Create Events Quickly by Dragging
        • How to Add an Edit Action to Calendar Events
        • How to Add a New Event Button to the Calendar Header
        • How to Customize the Right-Click Menu
        • How to Reschedule Events with Drag and Drop
      • Columns
        • Creating a Responsive 3-Column Layout
      • Data Table
        • How to customize Data Table style
        • How to make a field editable
        • How to add clickable buttons
        • How to color-code badges
        • How to export data
        • How to configure search
        • How to set columns visibility
      • Kanban
        • Saving Changes on Drag-and-Drop
      • List
      • Metric
      • Record Detail
        • Saving Changes
    • Interactions
      • How to create an interaction to navigate to an object page
      • How to create an interaction to navigate to a record page
      • How to Pass Multiple Selected Records from a Dynamic Component to a Screen Flow
    • Reactive Components
      • Reactive Map and Data Table
      • Master-Detail Relationship with Data Tables
      • Vertical Tabs with Reactive Data Table
    • Style
      • How do you add space or a break between sections or fields?
    • Tips and Tricks
      • Using the Dynamic Component component
  • Component Builder
    • Overview
    • Configuring Components
      • Properties
      • Fields
      • Style
    • Data & Interactions
      • Data Sources
        • Manual
        • Picklist
      • Resources
        • Constant
        • Formula
        • Nested Queries
        • Query
        • Variable
      • Interactions
        • CRUD from Record Variable
        • Download
        • Execute Flow
        • Navigate
        • On Load
        • Open Alert Modal
        • Open Confirm
        • Open Dynamic Component Dialog
        • Open Dynamic Component Panel
        • Open Flow Panel
        • Open Flow Dialog
        • Show Toast
    • Advanced Topics
      • Undo / Redo
      • Copy and Paste
      • Keyboard Shortcut
  • Components
    • Explore All Components
    • Accordion
    • Alert
    • Audio Player
    • Avatar
    • Avatar Group
    • Badge
    • Barcode
    • Blockquote
    • Button
    • Button Group
    • Button Icon
    • Button Menu
    • Button Stateful
    • Calendar
    • Camera 🆕
    • Card
    • Carousel
    • Chart
    • Checkbox
    • Checkbox Button
    • Chip Container
    • Color Picker
    • Columns
    • Combobox
    • Container
    • Counter
    • Data LWC Container
    • Data Table
    • Date Picker
    • Date
    • Date Range
    • Dual Listbox
    • Dynamic Component
    • Formatted Address
    • Formatted Name
    • Formatted Value
    • Header
    • Icon
    • Icon Picker
    • Illustration
    • Image
    • Input Color
    • Input Date
    • Input Pen (Signature)
    • Input Text
    • Kanban
    • List
    • LWC Container
    • Map
    • Media Object
    • Metric
    • PDF Viewer
    • Pivot Table
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Rating
    • Record Detail
    • Relationship Graph
    • Scope Notification
    • Section
    • Separator
    • Slider
    • Status
    • Tabbed Container
    • Tabs
    • Text
    • Text Area
    • Timeline
    • Toggle
    • Tree
    • Vertical Visual Picker
    • Video Player
    • Visual Picker
    • Visual Picker Link
  • Help
    • Contact Support
    • Security
    • Performance Guide
    • Deployment Process
    • Release Notes
    • Report Bugs
Powered by GitBook
LogoLogo

Company

  • About Us
  • Pricing

Policies

  • Privacy Policy
  • Terms of Service
On this page
  • Setting Up Your Accordion
  • 1. Add Sections to Your Accordion
  • 2: Customize the Look and Feel of Each Section
  • 3: Choose Initially Open Section(s) (Optional)
  • Style Properties
  • Why Use the Accordion Component?
  • Example Use Cases

Was this helpful?

  1. Components

Accordion

The Accordion component displays related content in collapsible sections, allowing users to show or hide information for a streamlined experience quickly. Each accordion can contain multiple se

Last updated 2 months ago

Was this helpful?

Setting Up Your Accordion

1. Add Sections to Your Accordion

First, you'll create the individual sections, or "items," for your accordion. Each item acts as a collapsible container where you'll place the content you want to display. This makes the Accordion component so powerful: you're not limited to just text and images. You can drag and drop any other Avonni Dynamic Component directly into an accordion section.

Do you want to include a detailed table of data? Drag a Data Table component right into the section. Need to visualize locations? Add a Map component. The possibilities are endless!

To add a new section, click the "Add Item" button.

2: Customize the Look and Feel of Each Section

Give your items the right look and feel.

  • Variant: Choose between "Base" for a standard appearance or "Shaded" for a subtle background effect.

  • Collapsible Icons: Enable or disable the icons that indicate whether a section is expanded or collapsed.

  • Icon Position: Place the collapsible icons on the left or right side of the item header.

3: Choose Initially Open Section(s) (Optional)

This step lets you control which accordion section (or sections) are expanded when the component first loads.

  • One Section Open at a Time: If your accordion is set to allow only one open section at a time, and you select multiple sections here, only the first section in your list will be open initially.

  • Multiple Sections Open: To have multiple sections open by default, enable the "Allow Expansion of Multiple Sections" option


Style Properties

  • Margin:

    • Top: Adds space above the accordion.

    • Right: Adds space to the right of the accordion.

    • Bottom: Adds space below the accordion.

    • Left: Adds space to the left of the accordion.

  • Padding:

    • Top: Adds space inside the accordion, above the content.

    • Right: Adds space inside the accordion, to the right of the content.

    • Bottom: Adds space inside the accordion, below the content.

    • Left: Adds space inside the accordion, to the left of the content

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

  • Size: Sets the thickness of the accordion's border (e.g., 1px, 2px).

  • Style: Sets the border style (e.g., solid, dashed, dotted).

  • Radius: Rounds the corners of the accordion's border (e.g., 5px for slightly rounded corners).

  • Width: Sets the width of the accordion.

  • Height: Sets the height of the accordion.

  • Overflow: Determines how content that extends beyond the accordion's set width or height is handled (e.g., scroll, hidden).

  • Background Color: Sets the background color of the accordion's content area.

  • Horizontal Alignment: Sets how the content is aligned horizontally within each section (e.g., left, center, right)

Why Use the Accordion Component?

  • Organize Content: Group related information into manageable sections, improving readability and navigation.

  • Save Space: Keep long content hidden until needed, reducing clutter on the page.

  • Improve User Experience: Provide a clear and intuitive way for users to access information.

  • Enhance Visual Appeal: Create a structured and organized layout for your content.


Example Use Cases

  • FAQs: Present frequently asked questions with their answers in a compact format.

  • Product Details: Organize product information into sections like "Description," "Specifications," and "Reviews."

  • Step-by-Step Guides: Break down complex processes into manageable steps.

  • Forms: Group-related form fields are divided into collapsible sections for better organization.

By leveraging the Accordion component, you can create user-friendly interfaces that present information concisely and engagingly.