1.4.3 • Published 5 years ago
react-tuber v1.4.3
ReactJS component for embedding Youtube, Vimeo, Dailymotion, Spotify and Giphy in your React application.
≪ My other modules · Buy me a Coffee ≫
Made with ♥ by Jeffrey Lanters
Installation
Install using NPM for your JS or TS project.
$ npm install react-tuber --save
Usage
Import the component, and paste any format URL from YouTube, Vimeo, Dialy Motion, Spotify or giphy.
import Tuber from "react-tuber";
<Tuber src="https://vimeo.com/5795056" />
<Tuber src="https://www.dailymotion.com/video/x42tyrx" />
<Tuber
src="https://www.youtube.com/watch?v=FIhC2rwO3BY"
className="myClassName"
style={{ margin: "20px" }}
width={400}
aspect="5:3"
autoplay={true} />