AmpExpandableSection

An AMP-compatible expandable section based on amp-accordion.

Import
import AmpExpandableSection from 'react-storefront/amp/AmpExpandableSection'

Props

NameTypeDefaultDescription
titleunion : string |
element

The title for the header of the expandable section

expandedboolfalse

Set to true to expand the panel

ExpandIconfuncExpandMore

The icon to use for collapsed groups

CollapseIconfuncExpandLess

The icon to use for expanded groups

CSS API

You can override all the class names injected by Moov-PWA thanks to the classes property. This property accepts the following keys:

  • accordion
  • title
  • section
  • toggle
  • expand
  • collapse
  • body