react-range

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

MIT License

Downloads
770.6K
Stars
815
Committers
38
react-range - v1.10.0 Latest Release

Published by tajo 3 months ago

Minor Changes

  • 92cd0ff Thanks @tajo! - Improving a11y of the slider by adding new label properties.
react-range - v1.9.2

Published by tajo 3 months ago

Patch Changes

react-range - v1.9.1

Published by tajo 3 months ago

Patch Changes

react-range - Draggable Track

Published by tajo about 4 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).

🎉 This feature has been created by @felix-kaestner!

react-range - Add support to render a mark at each step

Published by tajo about 4 years ago

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.

react-range - Focusing thumb after a click

Published by tajo over 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.

react-range - Added onFinalChange callback

Published by tajo about 5 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

react-range - Added support for RTL

Published by tajo about 5 years ago

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

react-range - Merge overlapping labels

Published by tajo over 5 years ago

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

mergelabels

Contribution by @jh3y! Thanks!

Package Rankings
Top 1.29% on Npmjs.org