Skip to content

A React component for viewing videos/displaying the contents of a user's YouTube channel.

Notifications You must be signed in to change notification settings

DavidDionise/react-youtube-playlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage is as follows:

import YouTubeChannel from 'react-youtube-channel';
import 'reacty-youtube-playlist/dist/styles'

const App = () => {
  return (
    <YouTubePlaylist
      width={'85%'}
      height={390}
      api_key='YourGoogleApiKey'
      playlist_id='YourYoutubePlaylistID'
      show_thumbnails
    />
  )
}

Available Props

api_key String : Your Google API key
playlist_id String : Your YouTube playlist ID
width String | Number : Can be a percent or number (pixels)
height String | Number : Can be a percent or number (pixels)
show_thumbnails Bool : Set to false if you don't want the thumbnail images
container_class String : A class name for the containing DOM node
iframe_container_class String : A class name for the iframe container DOM node
frame_border Number : iframe border size
scrolling Bool : Enable/Disable iframe scrolling
<YouTubePlaylist
  api_key={String}
  width={300}
  height={400}
  iframe_style={''}
  show_thumbnails={true}
  iframe_container_class={''}
  video_list_container_class={''}
/>

Note : You must include bootstrap css in your project for some of the UI in this component to work.

About

A React component for viewing videos/displaying the contents of a user's YouTube channel.

Resources

Stars

Watchers

Forks

Packages

No packages published