{"repo":"u-wave/react-youtube","free":true,"listed":false,"github":"https://github.com/u-wave/react-youtube","clone":"git clone https://github.com/u-wave/react-youtube.git","description":"YouTube player component for React.","language":"TypeScript","stars":129,"topics":["youtube","react-component","react","youtube-player","embed","react-youtube-player","react-youtube","youtube-player-component"],"license":"MIT","category":"ui-components","readme_excerpt":"@u-wave/react-youtube YouTube player component for React. [Install][] - [Usage][] - [Demo][] - [Component API][] - [Hook API][] Install Usage [Demo][] - [Demo source code][] The component renders an iframe and attaches the YouTube player to it. It supports all the same options as the useYouTube hook, plus a few to configure the iframe. If you need to do more with the iframe than this component provides, consider using the useYouTube hook directly. Props Name Type Default Description :----- :----- :----- :----- id string DOM ID for the player element. className string CSS className for the player element. style ReactCSSProperties Inline style for player element. video string null An 11-character string representing a YouTube video ID. width number string Width of the player element. height number string Height of the player element. host string YouTube host to use: 'https://www.youtube.com' or 'https://www.youtube-nocookie.com'. origin string The YouTube API will usually default this value correctly. It is exposed for completeness. paused boolean Pause the video. autoplay boolean Whether the video should start playing automatically. https://developers.google.com/youtube/player parameters#autoplay showCaptions boolean Whether to show captions below the video. https://developers.google.com/youtube/player parameters#cc load policy controls boolean Whether to show video controls. https://developers.google.com/youtube/player parameters#controls disableKeyboard boolean Ignore keyboa","default_branch":null,"files":null,"tree":[],"storefront":"/r/u-wave","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/u-wave/react-youtube/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}