react-vimeo-oembed

1.2.0 • Public • Published

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

Name Type Description
videoId Number ID of the video you would like to show.
options Object Options that determine how the video shows. Defaults to those found here.
LoadingComponent Element Loader element. Shows as the Vimeo script tag is loading.
errorCallback Function Function called if something goes wrong loading the Vimeo Oembed Player. Supplied with error object as argument.
scriptLoadCallback Function Function called when Vimeo Oembed Player script has loaded. Supplied with the video JSON response as argument.
className String Class applied to div containing the Vimeo Oembed Player. iframe.
style Object Style applied to div containing the Vimeo Oembed Player iframe.

Contribute

  1. Submit an issue
  2. Fork the repository
  3. Create a dedicated branch (never ever work in master)
  4. Fix bugs or implement features
  5. Write tests

Thanks for using this component!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    27
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    27
  • 1.1.0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i react-vimeo-oembed

Weekly Downloads

29

Version

1.2.0

License

MIT

Unpacked Size

1.08 MB

Total Files

13

Last publish

Collaborators

  • robertc