Table of Contents
Description
Emirax is a simple package to embed videos in React.
This is an alpha test.
It supports YouTube and Vimeo videos.
Release-notes
Version 0.0.1-alpha.1
Installation
To install the emirax, you can use the following npm command:
npm install emirax
React
import React from 'react';
import EmbedReact from 'emirax';
export const ExampleComponent = () => {
return (
<div>
<EmbedReact cssName="embed-1"
width={640}
height={360}
autoplay={false}
controls={true}
fullscreen={true}
link="https://www.youtube.com/watch?v=oEXFMGK7IC0"
/>
<EmbedReact cssName="embed-2"
width={640}
height={360}
autoplay={false}
controls={true}
fullscreen={true}
link="https://vimeo.com/217499569"
/>
</div>
);
};
License
MIT
Author
Demjhon Silver