react-precision-slider

0.2.0 • Public • Published

Precision Slider for React

npm version License

High-accuracy slider to control floating point values with large decimals.

Simple preview

Note

This currently works for my use-case and thus might not be developed any further.

Example usage

const SLIDER_ICONS = {
  main: '',
  secondary: '',
  reset: ''
};
 
<Slider
  label="Nice slider"
  min={0}
  max={10}
  step={0.1}
  icons={SLIDER_ICONS} // optional
  defaultValue={defaultValue}
/>;

Alternatively you can pass value and onChange props instead of defaultValue to make it controlled.

You'll also need to pass in some styles (currently with basic CSS classes).

See the example for both of the above.

Readme

Keywords

none

Package Sidebar

Install

npm i react-precision-slider

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

30.5 kB

Total Files

11

Last publish

Collaborators

  • hellenic