---
title: "Accordion"
description: "Group expandable Markdown panels."
canonical_url: "https://indocio.igrislabs.com/components/accordion"
---

> Index of every page on this site: [llms.txt](https://indocio.igrislabs.com/llms.txt)

## Usage

<accordion>
<accordion-item title="Can I override a component?" value="override">

Yes. Add the identically named component in your app's `components/docs/` directory.

</accordion-item>

<accordion-item title="Does Markdown need imports?" value="imports">

No. Documentation authoring components are registered globally.

</accordion-item>
</accordion>

```md
::accordion{type="single"}

:::accordion-item{title="Can I override a component?" value="override"}
Yes. Add the identically named component in your app.
:::

::
```

`type` is `single` by default. Use `multiple` to allow several open items. Each item requires a `title`; `value` defaults to its title and must be unique.

## Accordion Item

Each `accordion-item` belongs inside `accordion`. The default slot contains the expandable Markdown.

### Props

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Required
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        value
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The title
    </td>
  </tr>
</tbody>
</table>

Values must be unique within the group. The default slot contains the expandable Markdown.

## Sitemap

See the full [sitemap](https://indocio.igrislabs.com/sitemap.md) for all pages.
