--- url: /reference/items/Accordion/anatomy.md --- # Anatomy `Accordion` is a compound component: a root orchestrates one or more `AccordionItem` children, each wiring its parts through `data-ref` attributes. Use this map to see which parts exist and how they nest. ## Structure ``` Accordion data-component="Accordion" └─ AccordionItem (× n) data-component="AccordionItem" ├─ button [data-ref="btn"] the toggle, controls the panel └─ container [data-ref="container"] the collapsible wrapper └─ content [data-ref="content"] the panel content ``` ## Parts | Part | Selector | Required | Role | | --- | --- | --- | --- | | Root | `data-component="Accordion"` | Yes | Groups the items, handles `autoclose`, forwards the shared `item` options. | | Item | `data-component="AccordionItem"` | Yes (× n) | A single expandable section. Holds the `isOpen` and `styles` options. | | Trigger | `data-ref="btn"` | Yes | The `