Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shisama/react-slideshow-ui

React Slideshow to show images like slideshare and speakerdeck.
https://github.com/shisama/react-slideshow-ui

javascript presentation react slide slideshare slideshow speakerdeck

Last synced: 8 days ago
JSON representation

React Slideshow to show images like slideshare and speakerdeck.

Awesome Lists containing this project

README

        

# React SlideShow UI

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/shisama/react-slideshow/blob/master/LICENSE)
[![Join the chat at https://gitter.im/shisama/react-slideshow-ui](https://badges.gitter.im/shisama/react-slideshow-ui.svg)](https://gitter.im/shisama/react-slideshow-ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Dependency Status
devDependency Status
[![npm](https://img.shields.io/npm/dt/react-slideshow-ui.svg)](https://www.npmjs.com/package/react-slideshow-ui)
[![Build Status](https://travis-ci.org/shisama/react-slideshow-ui.svg?branch=master)](https://travis-ci.org/shisama/react-slideshow-ui)

React UI Component for slideshow like [SlideShare](https://www.slideshare.net/) or [SpeakerDeck](https://speakerdeck.com/).

[![NPM](https://nodei.co/npm/react-slideshow-ui.png?downloads=true&stars=true)](https://nodei.co/npm/react-slideshow-ui/)

![React SlideShow](https://github.com/shisama/react-slideshow-ui/raw/master/screenshot.png)

## [Demo](https://shisama.github.io/react-slideshow-ui/demo/)(Updated with every release)

## Installation
```
npm install --save react-slideshow-ui
```

## Usage
```javascript
import React from 'react';
import {render} from 'react-dom';
import SlideShow from 'react-slideshow-ui';

class App extends React.Component {
render() {
return (


{
console.log(`Page Update! index: ${index}, image: ${image}`);
}}
/>

);
}
}

render(, document.getElementById('slideshow'));

```

## Props

|name|type|reqired|description|
|----|----|-------|-----------|
|style|Object|Yes|style of this component. This object is immutable.|
|images|Array\|Yes|url strings of images for slide.|
|prevIcon|Dom|No|icon for button to move previous page.|
|nextIcon|Dom|No|icon for button to move next page.|
|withTimestamp|boolean|No|set true if you want to add timestamp to img url. i.e. `example.png?1483228800`|
|pageWillUpdate|function|No|function that is invoked when the page is turned over.|
|showFullscreenIcon|boolean|No|is icon to toggle fullscreen shown? default:`true`|
|className|string|No|className 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](https://github.com/shisama/react-slideshow/blob/master/LICENSE)

{rootdir:/demo/index.tsx}