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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-sd-gallery

v1.0.1

Published

React CSV Parser is a React component library for adding image or video library to your react application, supports lazy loading as well.

Downloads

5

Readme

npm version

React Sleek Design Gallery is a customizable React gallery library that provides an immersive image viewing experience with features like lazy loading, lightbox with zoom and pan, customizable transition effects, image captions, fullscreen mode, thumbnail navigation, autoplay slideshow, and mobile gesture support.

NPM

NPM Link - https://www.npmjs.com/package/react-sd-gallery?activeTab=readme

Features

  1. Lazy Loading: Load images as they appear in the viewport, improving performance.
  2. Lightbox: Display images in a full-screen overlay with zoom and pan capabilities.
  3. Customizable Transition Effects: Switch between images with various transition effects like fade and slide.
  4. Image Captions: Show captions on image hover or inside the lightbox.
  5. Fullscreen Mode: View images in fullscreen with a simple toggle.
  6. Thumbnail Navigation: Quickly navigate through images using thumbnail previews.
  7. Autoplay Slideshow: Automatically transition through images at a user-defined interval.
  8. Mobile Gesture Support: Navigate through images and control zoom with intuitive touch gestures.(In development)

Installation

Install react-sd-gallery using npm or yarn:

npm install react-sd-gallery

or bash

yarn add react-sd-gallery

Usage

Here's an example of how to use the library in your React application:

jsx

// App.js
import React from 'react';
import { Gallery } from 'react-sd-gallery';

const images = [
  {
    src: 'path/to/image1.jpg',
    alt: 'Image 1',
    thumbnail: 'path/to/thumbnail1.jpg',
    alt_thumbnail: 'Thumbnail 1',
    caption: 'This is image 1'
  },
  {
    src: 'path/to/image2.jpg',
    alt: 'Image 2',
    thumbnail: 'path/to/thumbnail2.jpg',
    alt_thumbnail: 'Thumbnail 2',
    caption: 'This is image 2'
  },
  // More images...
];

const MyGallery = () => (
  <Gallery images={images} autoplayTime={5000} />
);

export default MyGallery;

Props

  • images: An array of image objects, each containing:
  • src: The main image source.
  • alt: Alt text for the main image.
  • thumbnail: (Optional) Thumbnail image source.
  • alt_thumbnail: (Optional) Alt text for the thumbnail.
  • caption: (Optional) Caption text for the image.
  • autoplayTime: (Optional) Interval time in milliseconds for the autoplay slideshow.

Images as per above code output and some work samples

This is an alt text. This is an alt text. This is an alt text. This is an alt text. This is an alt text.

Contribution

Contributions are welcome! Please submit a pull request or open an issue to suggest improvements or report bugs. This is still in development hence suggest improvements.

About Me

I am Subham Divakar and I am the developer of multiple python and react libraries. Check out my worksamples on my portfolio site.

Connect with Me

LinkedIn: https://www.linkedin.com/in/subham-divakar-a7420a12a/
GitHub: https://github.com/shubham10divakar
Portfolio: https://shubham10divakar.github.io/showcasehub/

Feedback

Your feedback is important! Please share your thoughts and suggestions. License

This project is licensed under the MIT License.