---
title: "Accordions"
description: "Fold away detail until the reader asks for it with Accordion and AccordionGroup."
---

An accordion is a title that opens to reveal text. Wrap several in `AccordionGroup` to space them as one block.

**Where do my pages live?**

In your GitHub repo. Specly reads them when you push.

**Rate limits**

Each endpoint has its own limit.

```mdx
<AccordionGroup>
  <Accordion title="Where do my pages live?" defaultOpen>
    In your GitHub repo. Specly reads them when you push.
  </Accordion>
  <Accordion title="Rate limits" icon="gauge" description="Per endpoint, by type">
    Each endpoint has its own limit.
  </Accordion>
</AccordionGroup>
```

An accordion is a native HTML disclosure, so it works without JavaScript and by keyboard.

## Accordion props

- `title` (string, required): The text that is always visible.

- `description` (string): A smaller line beside the title.

- `icon` (string): A Lucide or Font Awesome name, shown before the title.

- `defaultOpen` (boolean, default: `false`): Starts the accordion open.

`AccordionGroup` takes no props.
