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

fc-react-slider

v0.1.0

Published

A fully featured slider component made in React

Downloads

94

Readme

react-slider

codecov Build Status npm GitHub license semantic-release

A fully featured slider component made in React.

Installation

npm install --save fc-react-slider

Basic Usage

import {Toggle} from 'react-controls';

export default class X extends React.Component{
 render() {
    <Slider
      name={'vertical'}
      orientation={'vertical'}
      showSteps
      onDragStart={action('drag-start')}
      onDragEnd={action('drag-end')}
    />
   }
}

Props

prop name | defaultValue | type -------|------|------ attributes| {} |Sometimes you may need to add some custom attributes to the root tag of the component. attributes will accept an object where the key and values will be those attributes and their value respectively. Eg : If you pass attributes = {'data-attr1' : 'val1','data-attr2' : 'val2'}the root tag will have the attributes data-attr1 and data-attr2 with the corresponding values as val1 and val2 respectively className| '' |Optional className to be added to the root tag of the component max|20|maximum limit of the slider min|0|minimum limit of the slider disabled| false |To disable or not to disable name|''|name of the component onChange| ({name, value}) | function triggered when the value changes onDragStart| ({name, value}) | function triggered when the sliding starts onDragEnd| ({name, value}) | function triggered when the sliding stops orientation|'horizontal'| 'horizontal' or 'vertical' rangeTemplate|[function](#rangeTemplate)|Returns an element that shows the slider range. readOnly|false| Boolean showSteps|false| whether or not to show steps. step|1|The difference between two sliding positions. tooltipTemplate|[function](#tooltipTemplate)|Returns the tooltip element. type|'range'| 'value' or 'range' value| [5, 10] ️|Can be a number or an array based on whether the type is 'value' or 'range respectively.

rangeTemplate

defaultValue:

function (min, max) {
    return (
      <div className='slider-range' >
        <div className='slider-range-min' >{min}</div>
        <div className='slider-range-max' >{max}</div>
      </div>
    );
  }

tooltipTemplate

defaultValue:

function (value) {
    return value;
  }

Development

  1. Clone the repo
  2. Create a new branch.
  3. Run npm install && npm run storybook
  4. You can find the server running at localhost:9002
  5. Add feature or fix bug. Add tests if required.
  6. if commit fails make sure that there's no linting error or failed test by running npm run test && npm run lint

License

MIT @ Ritesh Kumar