# Accordion

## Overview

The Accordion component in VulcanUI features a hierarchical structure that mirrors the actual HTML DOM. This documentation provides a comprehensive guide to all available BEM classes for the Sidebar styling and customization.

The Sidebar component follows a strict hierarchical structure with the root container `ds-sidebar__viewport` containing all sub-elements. Each level serves a specific purpose and can be styled independently.

\[CODE]

\[IMAGEN]

## Class hierarchy

The hierarchical class structure is as follows. Modifiers are in parenthesis.

```
 * ds-accordion (root --expanded --collapsed --draggable)
 * ├── ds-accordion__toggle (--disabled --expanded --collapsed)
 * ├── ds-accordion__content (--visible --hidden --animated)
 * ├── ds-accordion__header (--expanded --collapsed)
 * │   ├── ds-accordion__header-container
 * │   ├── ds-accordion__header-title
 * │   ├── ds-accordion__header-subtitle
 * │   ├── ds-accordion__header-details
 * │   └── ds-accordion__header-actions (--visible --hidden)
 * ├── ds-accordion__chevron (--expanded --collapsed)
 * │   └── ds-accordion__chevron-icon
 * ├── ds-accordion__drag
 * │   ├── ds-accordion__drag-handle
 * │   └── ds-accordion__drag-icon
 * └── ds-accordion__item (--active)
 *     └── ds-accordion__item-label
```

The below images map the classes of the Sidebar by number so when using them, you know which part to target specifically with your custom CSS stylesheet:

## Accordion classes


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ubidots.com/apps/styling-with-css/application-css/accordion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
