Skip to content

Accordion

Allows you to display content in collapsible panels, making it easy for users to explore details on demand while conserving screen space.

2.1 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Anatomy

Code

Accessibility

  • Adheres to the WAI-ARIA Accordion Pattern.
  • Each accordion header trigger is wrapped with the proper aria-expanded and aria-controls attributes.

Keyboard Interactions

API Reference

Accordion

Root component. Alias for Accordion.Root from Base UI.

AccordionItem

Individual accordion item container. Styled wrapper for Accordion.Item from Base UI with bottom border styling.

AccordionTrigger

Trigger button that toggles the accordion panel. Styled wrapper for Accordion.Trigger from Base UI. Includes a built-in chevron icon that rotates when expanded.

AccordionPanel

Collapsible content panel. Styled wrapper for Accordion.Panel from Base UI with animated height transitions. Also exported as AccordionContent.

Examples

Accordion allowing multiple panels open
Bordered accordion items