react-tuber
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published


npm npm npm npm npm

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} />

Package Sidebar

Install

npm i react-tuber

Weekly Downloads

58

Version

1.4.3

License

ISC

Unpacked Size

9.49 kB

Total Files

21

Last publish

Collaborators

  • jefflanters