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

slidish

v1.0.8

Published

Full-featured slider component for react

Downloads

27

Readme

Slidish - React component for building full-featured sliders

Slidish is a ready to use, simple, highly customizable, responsive React component for building sliders of all types of components including images, videos, etc.

npm NPM npms.io (final) Coveralls GitHub Workflow Status GitHub tag checks state Snyk Vulnerabilities for npm package npm bundle size

DOCUMENTATION

PLAYGROUND

FANCY DEMO

Features

  • Ready to use (No customization is needed unless you want more control)
  • Fully responsive
  • Fully accessible
  • Highly customizable
  • SSR (Server Side Rendering) ready
  • Lazy loading
  • Mouse and Touch Compatible
  • Keyboard navigation
  • Hardware acceleration
  • Event handlers (through props)
  • On demand Methods for external control (getState, next, previous, goto, play, pause, goFullscreen, exitFullscreen)
  • Supports images, videos and every possible component you can imagine
  • Customizable thumbnails
  • Slideshow support
  • FullScreen support (via browser api or by using css)
  • Contains builtin TypeScript declaration files
  • Tested on all major web browsers including mobile versions (Chrome, Safari, Firefox, Edge, Opera, IE 11)
  • Fully documented with examples for every option (https://hosseini44444.github.io/slidish/)

Getting started

  1. Install the package by running the following command in your project's root folder:
npm install --save slidish
  1. Import the default export and styles from the installed package:
import Slidish from "slidish";
import "slidish/style.css";
  1. Start using the package in your react components like below:
import React from "react";
import Slidish from "slidish";
import "slidish/style.css";

const MyComponent = (props) => {
  return (
    <div id="slidish-container">
      <Slidish>
        <img src="images/1.jpg" alt="space shuttle failure" />
        <img src="images/2.jpg" alt="space shuttle lunch" />
        <img src="images/3.jpg" alt="space shuttle lunch 2" />
        <img src="images/4.jpg" alt="North America's night from above" />
        <img src="images/5.jpg" alt="astronomical image 1" />
        <img src="images/6.jpg" alt="astronomical image 2" />
        <img src="images/7.jpg" alt="astronomical image 3" />
        <img src="images/8.jpg" alt="astronomical image 4" />
        <img src="images/9.jpg" alt="astronomical image 5" />
      </Slidish>
    </div>
  );
};

export default MyComponent;
  1. Enjoy the result

Tip:

  • Every direct child of the Slidish will become a unique slide .

  • Here we've used images as slides.

  • You could insert videos, embedded YouTube videos, divs and any other elements or React components.

Click here for Slidish's full documentation with examples and more