You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-vimeo-oembed

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-vimeo-oembed

React component to easily embed Vimeo videos in your application

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
68
-10.53%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

react-vimeo-oembed

React component to embed Vimeo videos!

Installation

Install react-vimeo-oembed with npm:

$ npm install react-vimeo-oembed --save

For CommonJS users:

import ReactVimeoOembed from 'react-vimeo-oembed';
or
import { ReactVimeoOembed } from 'react-vimeo-oembed';

Demo

Clone the repository and move into:

$ git clone git@github.com:RobertPTC/react-vimeo-oembed.git
$ cd react-vimeo-oembed

Install dependencies:

yarn install or npm i

Prepare the demo:

yarn demo or npm run demo

Run the server:

Open your browser and go to http://localhost:8080/

React Vimeo Oembed demo

Props

NameTypeDescription
videoIdNumberID of the video you would like to show.
optionsObjectOptions that determine how the video shows. Defaults to those found here.
LoadingComponentElementLoader element. Shows as the Vimeo script tag is loading.
errorCallbackFunctionFunction called if something goes wrong loading the Vimeo Oembed Player. Supplied with error object as argument.
scriptLoadCallbackFunctionFunction called when Vimeo Oembed Player script has loaded. Supplied with the video JSON response as argument.
classNameStringClass applied to div containing the Vimeo Oembed Player. iframe.
styleObjectStyle applied to div containing the Vimeo Oembed Player iframe.

Contribute

  • Submit an issue
  • Fork the repository
  • Create a dedicated branch (never ever work in master)
  • Fix bugs or implement features
  • Write tests

Thanks for using this component!

Keywords

React

FAQs

Package last updated on 04 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts