Accordion
The <Accordion> component creates expandable sections with title, optional description and icon, URL-hash deep linking, and full keyboard accessibility. Built on react-aria-components for ARIA support.
Basic
Code
Output
With description and icon
Code
Output
Default open
Use defaultOpen to start the accordion in the expanded state.
Code
Output
This content is visible on page load.
AccordionGroup
Wrap multiple accordions in <AccordionGroup> to coordinate them. Set exclusive so only one can be open at a time.
Code
Output
Deep linking
Each accordion generates a URL hash from its title (or custom id prop). Navigating to #your-title will auto-expand the matching accordion.