Accordion

Accordions are components that allow sections of content to be vertically displayed on a page. The header for each section controls if that content is expanded or collapsed.

How it works

Make the whole header section tappable to trigger the expand/collapse action.

To keep content related within their container, the following two changes happen:

  • When the accordion is open, the arrow icon points up; when collapsed, the icon points down when collapsed
  • The divider line stays at the bottom of each section when expanded, which differentiates each section

Web Accordion

Two separate illustrations of Web open and closed.

Example of Web open and closed

React Native

Two separate illustrations of React Native open and closed.

Example of React Native open and closed