presentation-slides

0.1.1 • Public • Published

presentation-slides

React Slideshow Component. Helper for creating presentation like Powerpoint. Change the slides with keyboard keys.

Installation

npm install presentation-slides

Example

import React, { Component } from 'react';
import Slider from 'presentation-slides';
 
class Slideshow extends Component {
  render () {
    return (
      <Slider>
        <div><h3>1</h3></div>
        <div><h3>2</h3></div>
        <div><h3>3</h3></div>
      </Slider>
    );
  }
}

Props

Property Type Description Default
prefix string Prefix added to the slide div 'slide-'
prev_keys array Keyboard keys for showing previous slide ['p', 'ArrowLeft']
next_keys array Keyboard keys for showing next slide ['n', 'ArrowRight']

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i presentation-slides

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • fabioavelino