anuraghazra / react-smooth-range-input

🎚 React beautiful input range slider

Home Page:https://react-smooth-range-input.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🎚 React Smooth Range Input

Tweet CircleCI Coverage Status npm downloads npm npm

  • Smooth input range
  • Beautiful animation interaction
  • Tiny size

Install

$ npm install react-smooth-range-input

Example

https://react-smooth-range-input.now.sh

Quickstart

import react from 'react';
import Slider from 'react-smooth-range-input';

export default () => <Slider value={1} min={1} max={30} />;

Props

Prop Type Required Description
value number βœ“ current value
min number βœ“ min number range
max number βœ“ max number range
onChange Function on value change callback
disabled boolean disable the component
hasTickMarks boolean = true show tick marks only apply to thick type
customController ({ ref: any, value: number }) => React.ReactNode custom controller: make sure to pass the ref

Sponsors

Thank you very much for those kind people with their sponsorship to this project.

@sayav @lemcii @washingtonsoares @lixunn @SamSamskies @peaonunes @wilhelmeek @iwarner @joejknowles @chris-gunawardena @Tymek @Luchanso @vcarel @gragland @tjshipe @krnlde @msutkowski @mlukaszczyk

About

🎚 React beautiful input range slider

https://react-smooth-range-input.now.sh/


Languages

Language:TypeScript 90.3%Language:HTML 4.1%Language:CSS 4.0%Language:JavaScript 1.5%