Menu

I built a React range slider with one, two or many thumbs: accessible, zero dependencies, Tailwind-ready

#reactjs#redditreactjs#react#input#price
Reading 0:00
15s threshold

I kept rebuilding the same dual-thumb price slider and hitting the same problems: thumbs crossing or getting stuck, overlapping tooltips, refetching on every pixel of a drag, and screen readers announcing two unlabeled sliders. So I turned it into a package.

react-multi-input-rangeslider

One, two or more thumbs; the value comes back in the shape you pass (number, array or { min, max })

A native range input per thumb, so keyboard, screen readers and forms work

onChangeEnd for fetching once when the user lets go

Tooltips that merge when thumbs get close, instead of overlapping

4 built-in styles, CSS variables for theming, a layered stylesheet for Tailwind v4, and an unstyled mode

Zero runtime dependencies, TypeScript types, React 16.8–19, works with the Next.js App Router

Demo and playground: https://samishan11.github.io/react-multi-input-rangeslider/

GitHub: https://github.com/Samishan11/react-multi-input-rangeslider

Walkthrough of building a price filter with it:…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.