React Range Versions Save

🎚️Range input with a slider. Accessible. Bring your own styles and markup.

v1.8.0

3 years ago

You can make the track draggable by setting draggableTrack prop to true:

93664954-fb722900-fa72-11ea-90c8-207cd2463ee2

Also, when this feature is not enabled, clicking on the track moves the closest thumb to it (previously this worked only when there was a single thumb).

:tada: This feature has been created by @felix-kaestner!

v1.7.0

3 years ago
93007943-c4a48c00-f523-11ea-933b-6200728ed663

There is a new API:

renderMark?: (params: {
  props: {
    key: string;
    style: React.CSSProperties;
    ref: React.RefObject<any>;
  };
  index: number;
}) => React.ReactNode;

Your marks will get automatically centered and positioned.

v1.5.0

4 years ago

When you drag and drop a thumb, it will get focused now so you can immediately use keyboard shortcuts (arrow) to keep moving it further.

v1.4.0

4 years ago

onFinalChange is called only when the drag&drop is finished (key up / mouse up). That's different from onChange that fires during the move.

https://github.com/tajo/react-range/pull/36

v1.3.0

4 years ago

Now you can switch the component into the right-to-left mode through the rtl prop.

Screen Shot 2019-08-16 at 9 56 24 PM

v1.1.0

4 years ago

There is a new hook useThumbOverlap that will help you to merge overlapping labels:

mergelabels

Contribution by @jh3y! Thanks!