Accordion
Accordion coordinates one or more collapsible sections with labelled triggers.
Design notes
Use Disclosure for an independent section. Expansion indicators and focus states communicate interaction without scaling the whole row.
Playground
Multiple sections
API
Accordion
Radix accordion root. Set type="single" for one open item or "multiple" for an array of open items. Native div attributes are forwarded.
No custom imperative methods. Event callbacks are listed as properties.
AccordionItem
An accordion item with a stable value unique within its root. Native div attributes are forwarded.
No custom imperative methods. Event callbacks are listed as properties.
AccordionTrigger
A native button inside an accordion heading. The component owns its label and chevron layout; asChild is not supported.
No custom imperative methods. Event callbacks are listed as properties.
AccordionContent
Expandable accordion panel with an inner spacing wrapper. Native attributes and ref apply to the outer panel.
No custom imperative methods. Event callbacks are listed as properties.