Typedefs
[props]
Props for Banner
Page Builder Banner component.
This component is part of the Page Builder / PWA integration. It can be consumed without Page Builder.
Returns: React.Element — A React component that displays a Banner.
Parameters
Name
Type
Description
props
propsReact component props
Props for Banner
Properties
Name
Type
Description
classes
ObjectAn object containing the class names for the banner
classes.root
StringCSS class for the banner root element
classes.link
StringCSS class for the banner link element
classes.wrapper
StringCSS class for the banner wrapper element
classes.overlay
StringCSS class for the banner overlay element
classes.content
StringCSS class for the banner content element
classes.button
StringCSS class for the banner button wrapping element
classes.buttonHover
StringCSS class for the banner button wrapping element for hover
classes.posterOverlay
StringCSS class for the banner poster appearance overlay
classes.collageLeftOverlay
StringCSS class for the banner collage left appearance overlay
classes.collageCenteredOverlay
StringCSS class for the banner collage centered appearance overlay
classes.collageRightOverlay
StringCSS class for the banner collage right appearance overlay
classes.posterOverlayHover
StringCSS class for the banner poster appearance overlay hover
classes.collageLeftOverlayHover
StringCSS class for the banner collage left appearance overlay hover
classes.collageCenteredOverlayHover
StringCSS class for the banner collage centered appearance overlay hover
classes.collageRightOverlayHover
StringCSS class for the banner collage right appearance overlay hover
classes.poster
StringCSS class for the banner poster appearance
classes.videoOverlay
StringCSS class for the video overlay
classes.viewportElement
StringCSS class for viewport element
minHeight
StringCSS minimum height property
backgroundColor
StringCSS background-color property
desktopImage
StringBackground image URL to be displayed on desktop devices
mobileImage
StringBackground image URL to be displayed on mobile devices
backgroundSize
StringCSS background-size property
backgroundPosition
StringCSS background-position property
backgroundAttachment
StringCSS background-attachment property
backgroundRepeat
StringCSS background-repeat property
content
StringThe HTML content to be rendered inside the banner content area
link
StringThe link location for the banner
linkType
StringThe type of link included with the banner. Values: default, product, category, page
showButton
StringWhether or not to show the button. Values: always, hover, never
buttonText
StringText to display within the button
buttonType
StringThe type of button to display. Values: primary, secondary, link
showOverlay
StringWhether or not to show the overlay. Values: always, hover, never
overlayColor
StringThe color of the overlay
textAlign
StringAlignment of the banner within the parent container
border
StringCSS border property
borderColor
StringCSS border color property
borderWidth
StringCSS border width property
borderRadius
StringCSS border radius property
marginTop
StringCSS margin top property
marginRight
StringCSS margin right property
marginBottom
StringCSS margin bottom property
marginLeft
StringCSS margin left property
mediaQueries
ArrayList of media query rules to be applied to the component
paddingTop
StringCSS padding top property
paddingRight
StringCSS padding right property
paddingBottom
StringCSS padding bottom property
paddingLeft
StringCSS padding left property
cssClasses
ArrayList of CSS classes to be applied to the component
backgroundType
StringBackground type
videoSrc
StringURL to the video
videoFallbackSrc
StringURL to the image which will be displayed before video
videoLoop
BooleanPlay video in loop
videoPlayOnlyVisible
BooleanPlay video when it is visible
videoLazyLoading
BooleanLoad video when it is visible
videoOverlayColor
StringColor for video overlay
getParallax
functionReturn parallax element and options
Source Code: pwa-studio/packages/pagebuilder/lib/ContentTypes/Banner/banner.js