If you have any project questions, concerns, or contribution ideas, join our #pwa Slack channel. Find out how to create an account by visiting Community Resources

Video

Typedefs

props

Props for Video

Video ⇒ React.Element

Page Builder Video component.

This component is part of the Page Builder / PWA integration. It can be consumed without Page Builder.

Kind: global functional component
Returns: React.Element - A React component that displays a Video using an iframe.

Param Type Description
props props React component props

props

Props for Video

Kind: global typedef
Properties

Name Type Description
classes Object An object containing the class names for the Video
classes.root String CSS classes for the root container element
classes.inner String CSS classes for the inner container element
classes.wrapper String CSS classes for the wrapper container element
classes.container String CSS classes for the container element
classes.video String CSS classes for the video element
url String Embed URL to render the video from an external provider (YouTube, Vimeo etc)
maxWidth String Maximum width of the video
textAlign String Alignment of the video within the parent container
border String CSS border property
borderColor String CSS border color property
borderWidth String CSS border width property
borderRadius String CSS border radius property
marginTop String CSS margin top property
marginRight String CSS margin right property
marginBottom String CSS margin bottom property
marginLeft String CSS margin left property
paddingTop String CSS padding top property
paddingRight String CSS padding right property
paddingBottom String CSS padding bottom property
paddingLeft String CSS padding left property
cssClasses Array List of CSS classes to be applied to the component

For implementation details View Source.