1.2.1 • Published 5 years ago

react-slideshow-ui v1.2.1

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

React SlideShow UI

GitHub license Join the chat at https://gitter.im/shisama/react-slideshow-ui npm Build Status

React UI Component for slideshow like SlideShare or SpeakerDeck.

NPM

React SlideShow

Demo(Updated with every release)

Installation

npm install --save react-slideshow-ui

Usage

import React from 'react';
import {render} from 'react-dom';
import SlideShow from 'react-slideshow-ui';

class App extends React.Component {
  render() {
    return (
      <div>
        <SlideShow
          style={{width: 400}}
          images={[
            './img/example1.png',
            './img/example2.png',
            './img/example3.png',
          ]}
          withTimestamp={true}
          pageWillUpdate={(index, image) => {
            console.log(`Page Update! index: ${index}, image: ${image}`);
          }}
        />
      </div>
    );
  }
}

render(<App />, document.getElementById('slideshow'));

Props

nametypereqireddescription
styleObjectYesstyle of this component. This object is immutable.
imagesArray\<string>Yesurl strings of images for slide.
prevIconDomNoicon for button to move previous page.
nextIconDomNoicon for button to move next page.
withTimestampbooleanNoset true if you want to add timestamp to img url. i.e. example.png?1483228800
pageWillUpdatefunctionNofunction that is invoked when the page is turned over.
showFullscreenIconbooleanNois icon to toggle fullscreen shown? default:true
classNamestringNoclassName of this component. default:slideshow

Browser Support

Chrome@latest Firefox@latest Safari@latest IE11

License

This project is licensed under the terms of the MIT license

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.1.4

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.3.10

7 years ago

0.3.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago