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

react-images-videos-slider-jav

v1.1.1

Published

A lightweight React media slider for displaying images and videos together in a responsive slider and reusable slider

Readme

image

React Media Slider – Display Images and Videos in a Single Slider

A lightweight and customizable React media slider for displaying images and videos together in a single, responsive slider.

Perfect for product galleries, portfolios, e-commerce websites, promotional content, media showcases, and modern React applications. [Live Demo] [GitHub] [npm]

   ┌──────────────────────────┐
   │                          │
   │      IMAGE / VIDEO       │
   │                          │
   └──────────────────────────┘

   ◀   ● ● ● ● ●   ▶

npm install my-react-image-slider-jav

✨ Features

  • 🖼️ Display images and videos in a single slider
  • 🎥 Native HTML5 video support
  • 🔄 Smooth previous/next navigation
  • 📱 Fully responsive layout
  • 👆 Touch and swipe friendly
  • ⚡ Lightweight and easy to integrate
  • 🎨 Fully customizable with CSS
  • 🧩 Simple and clean API
  • 🖱️ Previous and next navigation controls
  • 📦 Supports mixed media items
  • ⚛️ Works with modern React applications
  • 🚀 Simple installation and setup

📦 Installation

Install the package using npm:

npm install my-react-image-slider-jav

Or using Yarn:

yarn add my-react-image-slider-jav

🚀 Basic Usage

Import the ImageSlider component into your React application:

import React from "react";
import { ImageSlider } from "my-react-image-slider-jav";

const App = () => {
  const media = [
    {
      type: "image",
      src: "https://picsum.photos/id/1015/1200/800",
      alt: "Mountain View",
    },
    {
      type: "image",
      src: "https://picsum.photos/id/1016/1200/800",
      alt: "Landscape",
    },
    {
      type: "video",
      src: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
      poster: "https://picsum.photos/id/1025/1200/800",
    },
  ];

  return (
    <div className="App">
      <ImageSlider media={media} />
    </div>
  );
};

export default App;

🧩 Media Object Structure

Each media item accepts a type and src.

🖼️ Image

{
  type: "image",
  src: "https://example.com/image.jpg",
  alt: "Beautiful landscape"
}

🎥 Video

{
  type: "video",
  src: "https://example.com/video.mp4",
  poster: "https://example.com/poster.jpg"
}

Supported Properties

| Property | Type | Required | Description | |---|---|---|---| | type | "image" \| "video" | Yes | Defines the media type | | src | string | Yes | Image or video URL | | alt | string | No | Alternative text for images | | poster | string | No | Poster image displayed before video playback |

🎬 Mixed Media Example

The slider can display images and videos together:

import React from "react";
import { ImageSlider } from "my-react-image-slider-jav";

const media = [
  {
    type: "image",
    src: "https://picsum.photos/id/1015/1200/800",
    alt: "Mountain View",
  },
  {
    type: "image",
    src: "https://picsum.photos/id/1016/1200/800",
    alt: "Landscape",
  },
  {
    type: "video",
    src: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
    poster: "https://picsum.photos/id/1025/1200/800",
  },
];

const App = () => {
  return <ImageSlider media={media} />;
};

export default App;

Result

The slider seamlessly displays mixed media content:

Image → Image → Video → Image → Video

This makes it suitable for product galleries, portfolios, e-commerce pages, promotional content, and media-rich websites.

💡 Use Cases

  • 🛍️ Product galleries
  • 🛒 E-commerce websites
  • 💼 Portfolio websites
  • 📸 Photography showcases
  • 📝 Travel blogs
  • 🏢 Real estate listings
  • 🎓 Educational content
  • 🎮 Event galleries
  • 📢 Marketing landing pages
  • 🏷️ Company presentations
  • 📱 Social-media-style media galleries

🤔 Why my-react-image-slider-jav?

  • ⚡ Lightweight
  • 🎯 Easy integration
  • 🖼️ Supports images and videos
  • 📱 Responsive layout
  • 🧩 Simple API
  • 🎨 Easy customization
  • ⚛️ React-friendly
  • 🚀 Minimal setup
  • 📦 Suitable for personal and commercial projects

🛠️ Customization

The slider can be customized using CSS to match the design of your application.

You can customize:

  • Slider dimensions
  • Navigation controls
  • Thumbnail appearance
  • Spacing
  • Borders
  • Media presentation
  • Responsive behavior

🤝 Contributing

Contributions, bug reports, feature requests, and improvements are welcome.

If you would like to contribute:

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Test your changes
  5. Submit a pull request

📦 npm Package

You can find the package on npm:

my-react-image-slider-jav

⭐ Support the Project

If you find this package useful, consider giving it a ⭐ on GitHub and sharing it with other React developers.

Your feedback and suggestions are welcome!

📄 License

This project is licensed under the MIT License.

👨‍💻 Author

JISHNU A VIJAYAN