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

flexy-slider

v0.0.6

Published

A simple react component which makes your carousel/slider functionality so easy to integrate in your application. ## Demo

Readme

flexy-slider

A simple react component which makes your carousel/slider functionality so easy to integrate in your application.

Demo

will be updated soon

Installation

Install my-project with npm

  npm install flexy-slider --save
  yarn add flexy-slider
<!-- Import CSS Module into the file -->

import 'flexy-slider/dist/index.css' 

*** Options are not mandatory,without options component will behave as non navigational slider ***

import React from "react";
import FlexySlider  from "flexy-slider";

import 'flexy-slider/dist/index.css'        // Mandatory

export default function App() {
    # Options are not mandatory
  var options = {
    componentWidth : 1600,          //  in pixels(eg: 1000)
    componentHeight : 300,          //  in pixels(eg: 200)
    componentMargin : 10,           //  in pixels(eg: 20)
    tileMargin : 5,                 //  in pixels(eg: 20)
    tileToShow: 4,                  //  in numbers
    responsive : {                  //  in object
      XS:1,                         //  in numbers 
      SM : 2,                       //  in numbers  
    },
    navMode : {
      showArrow : true,             //  in boolean (true / false)
      arrowStyle : {                
        ArrowBackGroundShape :'circle',         //  in string
        ArrowBackGroundColor : '#f00',          //  in string (color code / color name)
        iconColor : 'white'                     //  in string (color code / color name)
      },
      navigationSlideCount : 4,      //  in numbers  
    }
  };
  return (
    <FlexySlider {...options}>
      <div>
        <h3>1</h3>
      </div>
      <div>
        <h3>2</h3>
      </div>
      <div>
        <h3>3</h3>
      </div>
      <div>
        <h3>4</h3>
      </div>
      <div>
        <h3>5</h3>
      </div>
      <div>
        <h3>6</h3>
      </div>
    </FlexySlider>
  );
}

Documentation

Basic Properties

| Name | Default | Description | | ---------------- | ---------- | ----------- | | componentWidth | 100% | Slider / Carousel container width (horizantally) | | componentHeight | auto | Slider / Carousel container width (vertically) | | componentMargin | 0 | Slider / Carousel container margin | | tileMargin | 10px | Default margin between individual tiles | | tileToShow | 4 | Number of tiles need to display in browser |

Auto Slide Properties

| Name | Default | Description | Options | | ---------------- | ---------- | ----------- | ------- | | autoSlide | false | (Boolean) In Default auto slide will be disabled | true, false | autoSlideInterval | 4000 | Interval should be in milli seconds | | pauseOnHover | false | (Boolean) On MouseOver Slider will be paused | true, false

Auto slide properties can be applicable in both navMode.showArrow enabled / disabled options.

In autoslide mode, navigation slide count will be in default 1. (custom slideCount for autoSlide mode will be enabled in upcoming releases..)

let options = {
    tileMargin : 15,
    tileToShow: 4,
    autoSlide : true,
    autoSlideInterval: 4000,
    navMode : {
      showArrow : true
    }
}

return (
    <FlexySlider {...options}>
      <div>
        <h3>1</h3>
      </div>
      <div>
        <h3>2</h3>
      </div>
    </FlexySlider>
);

Responsive properties

Can customize number of tiles need to diplay based on screen size. For example, You can set,

  1. Four images have to diplayed in desktop mode.
  2. Two images have to be displayed in tablet mode.
  3. One image only have to displayed in mobile.
let options = {
    tileMargin : 15,
    tileToShow: 4,                  //  Number of tiles to be displayed in default web mode ( Greater than 1200px)
    responsive : {                  //  in object
      XS:1,                         //  Number of tiles to be displayed in mobile. (XS devices)
      SM : 2,                       //  Number of tiles to be displayed in Tablet Mode. (SM devices)
      MD : 2,                       //  Number of tiles to be displayed in Tablet/Low resolution desktop Mode. (MD devices)
    },
}

return (
    <FlexySlider {...options}>
      <div>
        <h3>1</h3>
      </div>
      <div>
        <h3>2</h3>
      </div>
    </FlexySlider>
);

| Name | Default | Description | | ---------------- | ---------- | ----------- | | responsive | { SM : 2, XS : 1, MD : 3} | Responsiveness can be differentiate based on this screen size |

<--Screen size-->

  1. XS < 500px
  2. 500px > SM < 899px
  3. 900px > MD <= 1200px
  4. 1200px > LG (Default state)

Navigational properties

Can customize the option to turn on/off the navigation icon.

  1. In default, Wrapper will behave like a navigationless slider.
  2. To turn on the navigation icon,
let options = {
    tileMargin : 15,
    tileToShow: 3,
    navMode : {
        showArrow : true,
    }
}

return (
    <FlexySlider {...options}>
      <div>
        <h3>1</h3>
      </div>
      <div>
        <h3>2</h3>
      </div>
    </FlexySlider>
);
  1. Some useful properties to enhance navigation mode.

| Name | Default | Description | | ---------------- | ---------- | ----------- | | showArrow | false | To turn on/off the navigation icon | | navigationSlideCount | 4 | Number of tiles to navigate on click ( showArrow must be enabled)|

  1. Can customize the navigation icons as well.To customize,
import Image1 from './assets/img/image_01.png'
import Image2 from './assets/img/image_02.png'

let options = {
    tileMargin : 15,
    tileToShow: 3,
    navMode : {
        showArrow : true,
        icon: {
            type : 'IMAGE',  //  formats suppported jp(e)g/png/gif/svg
            left : Image1 ,
            right : Image2
        }  
    }
}

return (
    <FlexySlider {...options}>
      <div>
        <h3>1</h3>
      </div>
      <div>
        <h3>2</h3>
      </div>
    </FlexySlider>
);
  1. Can customize the default navigation icon style as well.To customize,
let options = {
    tileMargin : 15,
    tileToShow: 3,
    navMode : {
        showArrow : true,
        arrowStyle : {
            ArrowBackGroundShape :'circle',
            ArrowBackGroundColor : '#f00',
            iconColor : '#fff' 
        }
    }
}

return (
    <FlexySlider {...options}>
      <div>
        <h3>1</h3>
      </div>
      <div>
        <h3>2</h3>
      </div>
    </FlexySlider>
);

**Properties under arrowStyle | Name | Default | Description | | ---------------- | ---------- | ----------- | | ArrowBackGroundShape | circle | navigation icons shapes available in circle or square | | ArrowBackGroundColor | dark grey (#555 in hexa code) | Arrow background color can be color name or hexadecimal code| | iconColor | Yellow (#ff0 in hexa code) | Arrow icon [ svg ] color can be color name or hexadecimal code|

Screenshots

With Navigation enabled

  <!-- Single tiles will be navigate ( Carousel Mode ) -->
  let options = {
      tileToShow: 1,
      navMode : {
          showArrow : true,
          navigationSlideCount : 1,
      }
  }

Rtt9hF.md.png

  <!-- Two tiles will be navigate at a time -->
  let options = {
    tileToShow: 3,
    navMode : {
        showArrow : true,
        navigationSlideCount : 2,
    }
  }

Rtt2EJ.md.png

Without Navigation enabled

  let options = {
    tileToShow: 4,
    navMode : {
        showArrow : false,
    }
  }

RZ5kNV.md.png

Features

  • Can be used as carousel, image-gallery-slider

  • Simple Installation

  • Easy Configurables

  • Resposive

  • Cross platform