import AmpExpandableSection from 'react-storefront/amp/AmpExpandableSection'
An AMP-compatible expandable section based on amp-accordion.
Name | Type | Default | Description |
---|---|---|---|
title | union : string | element | The title for the header of the expandable section | |
expanded | bool | false | Set to true to expand the panel |
ExpandIcon | func | ExpandMore | The icon to use for collapsed groups |
CollapseIcon | func | ExpandLess | The icon to use for expanded groups |
expandedSectionId | string | Expanded section ID used by accordion |
You can override all the class names injected by Moov-PWA thanks to the classes
property. This property accepts the following keys:
section
title
toggle
expand
collapse
body