Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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']

Keywords

none

install

npm i presentation-slides

Downloadsweekly downloads

0

version

0.1.1

license

none

last publish

collaborators

  • avatar