Accordion
Collapsible content panels. Use the high-level wrapper or compose styled parts with a raw base-ui Accordion.Root.
Accordion
base-ui docs ↗Collapsible content panels. Wraps @base-ui/react Accordion with pre-styled
headers, triggers, and animated panels. Pass multiple to allow more than one
panel open at a time.
| Prop | Type | Default |
|---|---|---|
| items* | AccordionItem[] | — |
Array of items to render as collapsible panels. | ||
| multiple | boolean | true |
Allow multiple panels open at once. | ||
| defaultValue | string[] | — |
Initially expanded panel values (uncontrolled). | ||
| value | string[] | — |
Currently expanded panel values (controlled). | ||
| onValueChange | ((value: string[]) => void) | — |
Called when the set of open panels changes. | ||
| className | string | — |
Styled Parts
base-ui docs ↗Pre-styled wrappers around the corresponding base-ui parts. All base-ui props are forwarded.
CSS Class Names
Available as keys on the AccordionStyles object. Each key maps to a hashed CSS module class name at runtime.
headeritempanelpanel-contentroottriggertrigger-icon