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

@simplify-slider/react

v1.0.1

Published

https://github.com/SeoJaeWan/simplify-slider

Readme

simplify-slider

https://github.com/SeoJaeWan/simplify-slider

Branches

📖 About

simplify-slider is a library designed to help you build simple and intuitive sliders effortlessly. Initially built for React, it is being extended to support plain JavaScript as well.

The library is continuously being improved to ensure easy integration across a wide range of projects.

🛠️ Install

npm install @simplify-slider/react
# or
yarn add @simplify-slider/react

✨ Simple Usage

simplify-slider allows you to easily build a slider layout using the SimplifySlider and SimplifySlide components. Check out the examples below to learn how to use the library and configure various options.

✅ Default

<SimplifySlider>
  <SimplifySlide>
    <div>1</div>
  </SimplifySlide>

  <SimplifySlide>
    <div>2</div>
  </SimplifySlide>

  <SimplifySlide>
    <div>3</div>
  </SimplifySlide>

  <SimplifySlide>
    <div>4</div>
  </SimplifySlide>
</SimplifySlider>

Wrap multiple SimplifySlide components inside a SimplifySlider to render a basic slider.


Ref : Core

coreRef.current?.next();            // Move to the next slide
coreRef.current?.prev();            // Move to the previous slide
coreRef.current?.goTo(1);           // Go to the specified slide index
coreRef.current?.getCurrentIndex(); // Get the current active slide index
coreRef.current?.getOptions();      // Get the initialized slider options

<SimplifySlider
  ref={coreRef}
>
  {/* ... */}
</SimplifySlider>

You can control the slider instance or retrieve its state using ref. Available methods:

| Method | Description | | ------------------- | -------------------------------------- | | next() | Moves to the next slide | | prev() | Moves to the previous slide | | goTo(index) | Navigates to the specified slide index | | getCurrentIndex() | Returns the current active slide index | | getOptions() | Returns the initialized slider options |


📏 Space Between : number

<SimplifySlider
  options={{
    spaceBetween: 20,
  }}
>
  {/* ... */}
</SimplifySlider>

Sets the space between slides. The value is in pixels. Default is 0.


📦 Slides Per View : number

<SimplifySlider
    options={{
        slidesPerView: 4,
    }}
>
  {/* ... */}
</SimplifySlider>

Specifies how many slides should be visible at once. Default is 1.


🔁 Loop : boolean

<SimplifySlider
    options={{
        loop: true,
    }}
>
  {/* ... */}
</SimplifySlider>

Enables infinite looping — after the last slide, it goes back to the first. Default is false.


✋ Drag [boolean]

<SimplifySlider
    options={{
        drag: true,
    }}
>
  {/* ... */}
</SimplifySlider>

Allows users to swipe or drag to navigate between slides. Default is false.


⏱ Autoplay

If you want slides to move automatically, use the autoplay option.

⏲️ interval : number

<SimplifySlider
    options={{
        autoplay: {
            interval: 1000
        }
    }}
>
  {/* ... */}
</SimplifySlider>

Sets the time interval (in milliseconds) between automatic slide transitions. Default is 3000 (3 seconds).


↔️ direction : "left" | "right"

<SimplifySlider
    options={{
        autoplay: {
            direction: "left"
        }
    }}
>
  {/* ... */}
</SimplifySlider>

Sets the direction of the autoplay transition. Default is "right".


🔄 rolling : boolean

<SimplifySlider
    options={{
        autoplay: {
            rolling: true
        }
    }}
>
  {/* ... */}
</SimplifySlider>

Enables smooth rolling-like transition between slides. Default is false.


📊 onProgress : (progress: number) => void

<SimplifySlider
    options={{
        autoplay: {
            onProgress: (progress) => { console.log(progress) }
        }
    }}
>
  {/* ... */}
</SimplifySlider>

A callback function that receives the slide transition progress in real-time (value between 0 and 1). Useful for custom progress bars or indicators.


🪝 useSimplifySlide

This custom hook provides convenient utility functions to control the slider, while safely managing access to the Core instance. If the slider is not yet initialized, calling methods will throw a UninitializedCoreError to prevent unexpected behavior.

const {
  core,
  next,
  prev,
  goTo,
  getCurrentIndex,
  getOptions,
} = useSimplifySlide();

return (
  <>
    <SimplifySlider ref={core}>
      <SimplifySlide><div>1</div></SimplifySlide>
      <SimplifySlide><div>2</div></SimplifySlide>
      <SimplifySlide><div>3</div></SimplifySlide>
    </SimplifySlider>

    <button onClick={prev}>Prev</button>
    <button onClick={next}>Next</button>
  </>
);

| Method | Description | | ------------------- | ------------------------------------------ | | next() | Moves to the next slide | | prev() | Moves to the previous slide | | goTo(index) | Navigates to the specified slide index | | getCurrentIndex() | Returns the current active slide index | | getOptions() | Returns the initialized slider options | | core | The ref object to pass into SimplifySlider |