Accordion

A set of collapsible panels with headings and content.

Usage

API Reference

Accordion

Root component.

AccordionItem

Individual accordion item container. Includes bottom border styling.

AccordionTrigger

Trigger button that toggles the accordion panel. Includes a built-in chevron icon that rotates when expanded.

AccordionPanel

Collapsible content panel. Includes animated height transitions. Also exported as AccordionContent.

Examples

Single Accordion

Multiple Accordion

Controlled Accordion