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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tenedev/react-slideshow

v1.0.2

Published

A lightweight, customizable, and responsive slideshow component for React.

Readme

React Slideshow

npm downloads size maintenance Node.js Storybook contribute stars forks issues last commit workflow license

A lightweight, customizable, and responsive slideshow component for React. Supports auto image switching, infinite looping, custom navigation buttons, and flexible styling positions. Perfect for modern React applications that need a smooth and clean slideshow experience.

🗂️ Table of Contents

🚀 Installation

npm install @tenedev/react-slideshow
# or
yarn add @tenedev/react-slideshow

📦 Usage

import React from 'react';
import Slide from '@tenedev/react-slideshow';
// or
import { Slide } from '@tenedev/react-slideshow';

const images = [
  'https://source.unsplash.com/random/800x400?sig=1',
  'https://source.unsplash.com/random/800x400?sig=2',
  'https://source.unsplash.com/random/800x400?sig=3',
];

export default function App() {
  return (
    <Slide
      images={images}
      duration={3000}
      autoSwitch
      infiniteLoop
      buttonPosition="overlay"
      showIndicators
      pauseOnHover
      animation="slide"
      onSlideChange={(i) => console.log('Slide:', i)}
    />
  );
}

⚙️ Props

| Prop | Type | Default | Description | | -------------------- | ------------------------------------------------------------------- | ----------------------- | --------------------------------------------- | | images | Array<string \| { url: string; alt?: string }> | Required | Array of image URLs or objects with alt text. | | duration | number | 3000 | Time (ms) between auto transitions. | | autoSwitch | boolean | true | Enable auto switching between slides. | | infiniteLoop | boolean | true | Loop slideshow infinitely. | | animation | "slide" | "fade" | "slide" | Transition type. | | onSlideChange | (index: number) => void | undefined | Callback on slide change. | | buttonPosition | "overlay" | "bottom" | "overlay" | Position of navigation buttons. | | customButton | { left?: string \| ReactElement; right?: string \| ReactElement } | Arrows from getIcon() | Custom navigation buttons. | | hideButton | boolean | false | Hide navigation buttons. | | showIndicators | boolean | false | Show small indicators for each slide. | | defaultImageIndex | number | 0 | Starting slide index. | | pauseOnHover | boolean | false | Pause auto-switching on hover. | | transitionDuration | number | 700 | Duration of transition animation in ms. |

🎨 Customization

Custom Buttons

<Slide
  images={images}
  customButton={{
    left: '◀',
    right: '▶',
  }}
/>

📘 Example

Here’s a complete working example in React for more visit Live:

import React from 'react';
import Slide from '@tenedev/react-slideshow';
//or
import { Slide } from '@tenedev/react-slideshow';

const App = () => {
  const slides = [
    '/images/slide1.jpg',
    '/images/slide2.jpg',
    '/images/slide3.jpg',
  ];

  return (
    <div className="mx-auto mt-8 w-full max-w-2xl">
      <Slide images={slides} duration={5000} autoSwitch infiniteLoop button />
    </div>
  );
};

export default App;

🛠️ Contributing

We welcome contributions from the community!

If you have ideas, suggestions, or bug reports, feel free to open an issue or submit a pull request on GitHub.

Let's make @tenedev/react-slideshow better together!

📜 License

This project is licensed under the MIT License.
Copyright © TenEplaysOfficial