---
title: "Add Accordion and Tabs"
slug: "add-accordion-and-tabs"
abstract: "Add composites to your site."
---
# Add Accordion and Tabs

Accordion and Tabs are - like Carousel, Flip, and Snippet - composite renderings. A composite rendering enables you to compose a more complex rendering from other renderings.

<details>
<summary><h2>Add the Accordion rendering</h2></summary>

The Accordion rendering lets you stack a list of collapsible sections either vertically or horizontally. You can use an accordion to display FAQs, sets of thumbnails, or divide longer documents in sections. Each section can be expanded to reveal the content associated with that item.

Collapsing a page with an accordion minimizes scrolling, which can be very useful for content-rich pages or on pages where the content is restricted to very small spaces, for example, on mobile devices. This allows people to decide what to read or what to ignore, and can make the webpage appear less overwhelming.

To add the Accordion rendering:

1. Drag and drop the Accordion rendering to the page.
2. In the **Select the Associated Content** dialog box:
    - To select an existing content item, click **Select Existing Content**, then click the content item that you want and click **OK**.

        For example, if you select an existing FAQ section, the FAQ content item automatically populates the accordion:

        ![Select the Associated Content dialog box.](https://doc.sitecore.com/api/markdown-image/xp/en/users/sxa/105/sitecore-experience-accelerator/images/CABD2F97309848BEABD198FAAD7E59EF.png)

        ![Accordion example.](https://doc.sitecore.com/api/markdown-image/xp/en/users/sxa/105/sitecore-experience-accelerator/images/519ECD63944347A5B575B0AA230342D6.png)

    - To create new accordion content, click **Create New Content** and click **Ok** and in the **Insert Item** dialog box, click **Accordion**. Enter a name and click **Ok**.
3. You can add accordion items and change their order by using buttons in the toolbar.

</details>

<details>
<summary><h2>Change the appearance of an accordion</h2></summary>

You can change how an accordion is displayed on the page.

To change an accordion's appearance:

1. On the floating toolbar of the accordion, click **Edit the Component Properties**.
2. In the **Accordion Control** section, determine the accordion's appearance by editing the following fields:
    - **Easing Function** – click the type of expand/collapse animation. For example, **swing**, **back**, **bounce**, **quint**.
    - **Animation Speed** – specify the speed (in milliseconds) of the animation. For example, enter 600 for slow, 400 for normal, or 200 for fast.
    - **Can Open Multiple** – select to enable expanding multiple sections at the same time.
    - **Can Toggle** – select to allow toggling of sections.
    - **Expanded by Default** – select to have the first section expanded when you open the page.
    - **Expand on Hover** – select to expand sections when you hover your mouse over the section title.
3. In the **Control Properties** dialog box, in the **Styling** section, you can choose different styles for your accordion. For example, to have an accordion that is displayed horizontally, select **Horizontal Accordion**.

    ![In the Styling section select Horizontal Accordion.](https://doc.sitecore.com/api/markdown-image/xp/en/users/sxa/105/sitecore-experience-accelerator/images/2658579D636F403F9D683FD36C6C2727.png)

</details>

<details>
<summary><h2>Add the Tabs rendering</h2></summary>

The Tabs rendering lets you display content within a tabbed layout, where the content of only one tab is visible at a time. Tabs are very effective when you want to display related information in a structured way. For example, you can use the Tabs rendering to organize blog posts into categories, such as recent posts, popular posts, and most commented posts.

To add the Tabs rendering:

1. From the toolbox, drag the Tabs rendering to the page.
2. In the **Select the Associated Content** dialog box, select an existing content item or click **Create** to create a new content item. Click **Ok** to display the Tabs component on your page.

    ![The tab component.](https://doc.sitecore.com/api/markdown-image/xp/en/users/sxa/105/sitecore-experience-accelerator/images/SXA-tabs.PNG)

3. To change the styling, in the floating toolbar, click **Edit the Component Properties**.
4. In the **Control Properties** dialog box, in the **Styling** section, determine the appearance of the tabs by selecting a style.

    For example, to outline the tabs on the left, click **Tabs on left** and then click **OK**.

    > [!note]
    > If you select the Tabs at bottom style, in the Tabs Control section, you must also select the Tabs at the Bottom check box.

5. You can add tab items and change their order by using buttons in the toolbar.

    ![Use the Tab toolbar to change the order of the tabs.](https://doc.sitecore.com/api/markdown-image/xp/en/users/sxa/105/sitecore-experience-accelerator/images/SXA-tab-add.PNG)

</details>