YouTubeVideo
import { YouTubeVideo } from '@dr.pogodin/react-utils';
The YouTubeVideo component renders an embed YouTube video.
Demo
Properties
autoplay
- boolean - Set true to automatically start video playback when loaded.src
- string - URL of the video to play. It can be in any of the following formats, and keeps any additional query parameters understood by the YouTube IFrame player:theme
- YouTubeVideoTheme - Ad hoc React Themes theme.title
- string - Thetitle
attribute to add to the player's iframe.- Other props of a themed component.
YouTubeVideoTheme
See React Themes docs to learn how the visual component theming works. The valid theme keys for YouTubeVideo component are:
container
- The root component element.video
- The YouTube iframe player element.