0.2.0 • Published 5 years ago

react-precision-slider v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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.

0.2.0

5 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago