Skip to content

michaeljholmes/react-youtube-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple modal which opens with a youtube video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published