react-youtube-modal

1.1.1 • Public • Published

react-youtube-modal

A simple modal which opens with a youtube video. Modal closes when user clicks outside modal or if video finishes(default behaviour).

Install

npm install- react-youtube-modal --save

Basic Usage

  
 <YoutubeModal videoId="B6-WRTmjFAA" >
    <button type="button">Open Modal!</button>
 <YoutubeModal/>

Props

Required:

  • videoId - ID of youtube video displayed in modal

Not Required:

  • closeOnFinish : Default - true
  • height : Default - 640px
  • width : Default - 390px

Readme

Keywords

none

Package Sidebar

Install

npm i react-youtube-modal

Weekly Downloads

27

Version

1.1.1

License

none

Last publish

Collaborators

  • mjholmes