1.0.22 • Published 5 years ago

@instaffogmbh/react-bigpicture v1.0.22

Weekly downloads
88
License
ISC
Repository
github
Last release
5 years ago

react-bigpicture

React Lightbox Component based on BigPicture.js / Video and Image Demo - CodeSandbox

npm install react-bigpicture --save

OR

yarn add react-bigpicture
import React from 'react';
import { render } from 'react-dom';
import BigPicture from "react-bigpicture";

render(
    <div>
        <BigPicture
            type="image"
            caption="Example of an optional caption."
            src="http://lorempixel.com/1200/700/sports/1"
        >
            <img src="http://lorempixel.com/400/200/sports/1" />
        </BigPicture>

        <BigPicture
            type="video"
            src="http://www.html5videoplayer.net/videos/toystory.mp4"
        >
            <img src="http://lorempixel.com/400/200/sports/2" />
        </BigPicture>

        <BigPicture
            type="youtube"
            src="https://www.youtube.com/watch?v=TTAU7lLDZYU"
        >
            <img src="http://lorempixel.com/400/200/sports/3" />
        </BigPicture>

        <BigPicture type="vimeo" src="https://vimeo.com/119287310">
            <img src="http://lorempixel.com/400/200/sports/5" />
        </BigPicture>
    </div>,
  document.querySelector('#root')
);

horizontal with codes

BigPicture by @henrygd https://github.com/henrygd/bigpicture

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago