Typedefs
[props]
Props for Video
Page Builder Video 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 Video using an iframe.
Parameters
Name
Type
Description
props
propsReact component props
Props for Video
Properties
Name
Type
Description
classes
ObjectAn object containing the class names for the Video
classes.root
StringCSS classes for the root container element
classes.inner
StringCSS classes for the inner container element
classes.wrapper
StringCSS classes for the wrapper container element
classes.container
StringCSS classes for the container element
classes.video
StringCSS classes for the video element
url
StringURL to render the video from an external provider (YouTube, Vimeo etc)
autoplay
BooleanVideo autoplay
muted
BooleanVideo muted
maxWidth
StringMaximum width of the video
textAlign
StringAlignment of the video 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
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/Video/video.js