npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@george-jopson/react-slide-deck

v1.0.3

Published

A small package allowing you to create a slide deck using React!

Readme

What is this?

This npm package allows you to create a React slide deck. You pass React elements into the SlideDeck component, and then you can move between the slides using the arrow keys.

You can load up multiple versions of the slide deck (for example on different tabs), which are synced up using local storage. You are also given an option to supply a slide offset on mount. This means that you could have one tab open presenting slides (with an offset 0) and then a tab open on your personal screen showing the upcoming slide (with an offset 1).

You are also able to determine whether you want your slide to maintain state, meaning whether the React state will be maintained if you return to the slide (compared to re-creating the element).

Usage

The core component is the SlideDeck component, which takes a list of slides and whether your slides should maintain their state by default.

For example:

import SlideDeck from "@george-jopson/react-slide-deck";

export default function App() {
  const slides = [
    <SlideOne/>,
    <SlideTwo/>,
    <SlideThree/>
  ]

  return (
    <SlideDeck slides={slides} defaultStateful={true}/>
  );
}

If you want the state maintenance of a slide to be different to the default, you can wrap your slide with the StatelessSlideMarker or the StatefulSlideMarker components.

For example:

import SlideDeck, {StatelessSlideMarker, StatefulSlideMarker} from "@george-jopson/react-slide-deck";

export default function App() {
  const slides = [
    <SlideOne/>,
    <StatelessSlideMarker><SlideTwo/></StatelessSlideMarker>,
    <StatefulSlideMarker><SlideThree/></StatefulSlideMarker>
  ]

  return (
    <SlideDeck slides={slides} defaultStateful={true}/>
  );
}

Note: In the above example, the StatefulSlideMarker is unnecessary because defaultStateful={true}, but it was added anyway for demonstrative purposes.