🎚️Range input with a slider. Accessible. Bring your own styles and markup.
MIT License
Published by tajo about 4 years ago
You can make the track draggable by setting draggableTrack
prop to true
:
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!
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.
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.
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.
Published by tajo about 5 years ago
Now you can switch the component into the right-to-left mode through the rtl
prop.
Published by tajo over 5 years ago
There is a new hook useThumbOverlap
that will help you to merge overlapping labels:
Contribution by @jh3y! Thanks!