Socket
Socket
Sign inDemoInstall

react-presentable

Package Overview
Dependencies
3
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-presentable

This is a library to create slideshows using react


Version published
Weekly downloads
13
Maintainers
1
Created
Weekly downloads
 

Readme

Source

React Presentable

React Presentable is a lightweight zero-dependency module to create slideshows inside React. The slides can render whatever react code you like.

Use the arrow keys or left mouse button to navigate between slides.

Installation

npm install --save react-presentable

Usage

import Presentation, { Slide } from 'react-presentable'

// ...

return (
  <Presentation
    style={{ width: '100vw', height: '100vh' }}
    theme={{ backgroundColor: 'violet', textColor: '#fff' }}
  >
    <Slide>
      <h1>Slide 1</h1>
    </Slide>
    <Slide>
      <h1>Slide 2</h1>
    </Slide>
  </Presentation>
)

Props

children

  • optional
  • type: ReactNode

The slides in the presentation.

style

  • optional
  • type: CSSProperties

Override styling of the presentation.

theme

  • optional
  • type: PresentationTheme

The theme of your presentation. backgroundColor?: string textColor?: string

showProgressBar

  • optional
  • type: boolean
  • default: true

Display a animated progress bar or not.

showArrows

  • optional
  • type: boolean
  • default: true

Display left and right arrows for changing slides.

className

  • optional
  • type: CSSProperties

The CSS class of the presentation element

Keywords

FAQs

Last updated on 19 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc