# daisyUI Accordion Component Documentation ## Overview The Accordion component is used for showing and hiding content, but only one item can stay open at a time. It works with radio inputs where all radio inputs with the same name work together, allowing only one item to be open simultaneously. ## Key Features - Only one accordion item can be open at a time - Uses radio inputs for controlling which item is open - Supports different icon styles: arrow, plus/minus - Can be joined together using the `join` component ## Classes and Modifiers | Class name | Type | Description | |------------|------|-------------| | collapse | Component | Base collapse class | | collapse-title | Part | Title part of accordion item | | collapse-content | Part | Content part of accordion item | | collapse-arrow | Modifier | Adds arrow icon | | collapse-plus | Modifier | Adds plus/minus icon | | collapse-open | Modifier | Force open accordion item | | collapse-close | Modifier | Force close accordion item | ## Usage Examples ### Basic Accordion ```html