skeleton
  1. components
  2. react
  3. accordions

Accordions

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>