1. components
  2. accordion
  3. react

Accordion

Divide content into collapsible sections.




Multiple Items

Apply the multiple prop to to enable opening more than one panel at a time.

<Accordion multiple>...</Accordion>

Open State

Set the visible panels using the open prop.

<Accordion.Item open>...</Accordion.Item>

State Icons

Set the state icons using the following Accordion control component props. Both accept React components as the value.

<Accordion.Control iconOpen={componentRef} iconClosed={componentRef}>
...
</Accordion.Control>