Typedefs
[props]
Props for Slider
Page Builder Slider 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 Slider which contains slides.
Parameters
Name
Type
Description
props
propsReact component props
Props for Slider
Properties
Name
Type
Description
classes
ObjectAn object containing the class names for the Slider
classes.root
StringCSS class for the slider root element
classes.bannerRoot
StringCSS class for the child banner item
classes.bannerLink
StringCSS class for the child banner item
classes.bannerWrapper
StringCSS class for the child banner item
classes.bannerPosterOverlay
StringCSS class for the child banner item
minHeight
StringCSS minimum height property
autoplay
StringWhether the slider should autoplay
autoplaySpeed
StringThe speed at which the autoplay should move the slide on
fade
StringFade between slides
infinite
StringWhether to infinitely scroll the slider
showArrows
StringWhether to show arrows on the slide for navigation
showDots
StringWhether to show navigation dots at the bottom of the slider
textAlign
StringAlignment of content within the slider
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
Source Code: pwa-studio/packages/pagebuilder/lib/ContentTypes/Slider/slider.js