Accordions

A simple but elegant user interface (UI) component that allows users to reveal and hide information. Individual parts of an accordion include a clickable title, an icon that signals interactivity, and a pane or drawer of information that is either hidden or revealed on focus. Accordion drawers may be single or stacked.

Use Cases:

  • Conserve vertical space on a page by concealing non-essential text.
  • Break up long paragraphs of text and enable users to quickly scan for content that is relevant to them.
  • Write clear and concise accordion headings that describe the nature of the hidden content.

Avoid:

Hiding essential information or calls to action in accordion drawers. If the content within the accordion is necessary for users to make informed decisions or take specific actions, it is best to display it directly rather than hiding it.

Accessiblity:

  • Torch WDS accordions are coded with ARIA tags to ensure that they are accessible to screen readers and other assistive devices.
  • For those concerned about search engine optimization (SEO) and access to information, Google does index content that is “hidden” within accordion drawers.


Component Viewer

Preview various component colors, widths, and alignments.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.