AmpHidden

Renders an element that is hidden when a specific property in amp-state is set to true

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

Props

NameTypeDefaultDescription
componentunion : string |
func
'div'

The type of component to use. Defaults to div.

bindstring

The boolean amp-bind expression that will result in this component being hidden when true.

hiddenboolfalse

Set to true to hide the component on initial render

CSS API

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

  • hidden