# Accordion

A simple accordion component.

## Usage <a href="#usage" id="usage"></a>

```jsx
import { Main, Accordion } from '@aragon/ui'

function App() {
  return (
    <Main>
      <Accordion
        items={[
          ['Row content', 'Expandable content'],
          [<div>Row content</div>, <div>Expandable content</div>],
        ]}
      />
    </Main>
  )
}
```

## Props <a href="#props" id="props"></a>

#### `items` <a href="#items" id="items"></a>

| TYPE               | DEFAULT VALUE   |
| ------------------ | --------------- |
| `Array` of `Array` | None (required) |

The items composing the accordion list. The first entry of each nested array is the content of the row, while the second entry is the content of the expandable part.


---

# 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://legacy-docs.aragon.org/developers/tools/aragonui/structure/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.
