JSPM

react-youtube-embed

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1368
  • Score
    100M100P100Q109521F
  • License MIT

Package Exports

  • react-youtube-embed

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-youtube-embed) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-youtube-embed

A responsive YouTube embed component for React.

Install

With npm:

npm install --save react-youtube-embed

With Yarn:

yarn add react-youtube-embed

Usage

import YouTube from 'react-youtube-embed'

...

<YouTube id='A71aqufiNtQ' />

Options

  • aspectRatio: Set an aspect ratio or percentage. Default: "16:9"
  • prependSrc: Prepends a string to the embed URL (before the YouTube ID). Default: "https://www.youtube.com/embed/"
  • appendSrc: Appends a string to the embed URL. Default: ""