Skip to main content

Accordion

The accordion is a vertically stacked list of items. Each item can be “expanded” or “collapsed” to reveal the content associated with that item.

Demo

States & Variations

Open

An attribute of open is added to the details element

Auto Insurance

Auto Insurance is required for drivers in the US. This accordion spoiler is open by default.

Closed

No attribute is added to the details element

Auto Insurance

Auto Insurance is required for drivers in the US.

Usage

An accordion can be applied to a Wordpress post by adding in this shortcode. Appropriate HTML will be rendered on output.

Anatomy

  1. Accordion
  2. Accordion Content
  3. Accordion Summary/Heading
  4. Accordion Icon
  5. Accordion Details
Accordion Anatomy