Skip to main content
The Accordion component allows users to expand and collapse content sections. It supports both single and multiple expanded items.

Installation

Usage

Components

Accordion (Root)

string | string[]
Default opened item(s) in uncontrolled mode.
string | string[]
Controlled open state value.
function
Callback fired when the open state changes.
boolean
default:"false"
Allow multiple items to be open simultaneously.

AccordionItem

string
required
Unique identifier for the accordion item.
boolean
Prevents the item from being toggled.

AccordionTrigger

string
Additional CSS classes.
The trigger automatically includes a chevron icon that rotates when expanded.

AccordionPanel

string
Additional CSS classes.

Examples

Multiple Items Open

Controlled

Accessibility

  • Uses proper ARIA attributes for accordion pattern
  • Keyboard navigation with Enter/Space to toggle
  • Focus management
  • Animated expansion with height transitions