emersonbroga-youtube-embed

Simple YouTube embed React component that keeps its aspect ratio and also adds a nice fade in on video load.

Usage no npm install needed!

<script type="module">
  import emersonbrogaYoutubeEmbed from 'https://cdn.skypack.dev/emersonbroga-youtube-embed';
</script>

README

Youtube Embed

Simple YouTube embed React component that keeps its aspect ratio and also adds a nice fade in on video load.

Demo:

Youtube Embed Demo

Installation

Install the package

npm i emersonbroga-youtube-embed

import it to your project

import Youtbe from 'emersonbroga-youtube-embed';

render the component sending the videoId

<Youtube videoId="8s_1WH9JNec" />

That's it!

Thankyou for using it.

Follow me on Social Media