Renders an element that is hidden when a specific property in amp-state is set to true
import AmpHidden from 'react-storefront/amp/AmpHidden'
Name | Type | Default | Description |
---|---|---|---|
component | union : string | func | 'div' | The type of component to use. Defaults to div. |
bind | string | The boolean amp-bind expression that will result in this component being hidden when true. | |
bool | false | Set to true to hide the component on initial render |
You can override all the class names injected by Moov-PWA thanks to the classes
property. This property accepts the following keys:
hidden