# react-slideshow-ui

> React UI Component for slideshow like SlideShare or SpeakerDeck.

Latest version **1.2.1** (published 2019-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-slideshow-ui
pnpm add react-slideshow-ui
yarn add react-slideshow-ui
bun add react-slideshow-ui
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2019-02-24 |
| First published | 2017-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 29.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Masashi Hirano |
| Maintainers | shisama |
| Keywords | react, reactjs, slideshow, slide, slides, slideshare, speakerdeck, presentation, keynote, powerpoint |

## Links

- npm: https://www.npmjs.com/package/react-slideshow-ui
- Repository: https://github.com/shisama/react-slideshow-ui
- Issues: https://github.com/shisama/react-slideshow-ui/issues
- npm.io page: https://npm.io/package/react-slideshow-ui

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.8.0
- [toggle-fullscreen](https://npm.io/package/toggle-fullscreen.md) ^0.3.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2019-02-24
- 1.2.0 — 2018-11-13
- 1.1.0 — 2018-11-04
- 1.1.4 — 2018-11-04
- 1.0.4 — 2018-04-22
- 1.0.3 — 2018-02-27
- 1.0.2 — 2017-11-18
- 1.0.1 — 2017-11-18
- 1.0.0 — 2017-11-18
- 0.3.10 — 2017-11-01
- 0.3.9 — 2017-10-04
- 0.3.8 — 2017-09-30
- 0.3.7 — 2017-08-29
- 0.3.6 — 2017-08-26
- 0.3.5 — 2017-08-26
- … 13 more at https://npm.io/package/react-slideshow-ui/versions

## 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)
<a href="https://david-dm.org/shisama/react-slideshow-ui/"><img src="https://david-dm.org/shisama/react-slideshow-ui.svg" alt="Dependency Status"></a>
<a href="https://david-dm.org/shisama/react-slideshow-ui/?type=dev"><img src="https://david-dm.org/shisama/react-slideshow-ui/dev-status.svg" alt="devDependency Status"></a>
[![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 (
      <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

|name|type|reqired|description|
|----|----|-------|-----------|
|style|Object|Yes|style of this component. This object is immutable.|
|images|Array\<string\>|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)

---
_Source: https://npm.io/package/react-slideshow-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
