Atelier UI

Search components…

Search components…

Range Slider

Dual-thumb range slider with a minimum gap and keyboard control, ideal for price filters.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

RangeSliderProps

Also accepts all props of Omit<React.ComponentProps<"div">, "onChange" | "defaultValue">

PropTypeDefaultDescription
value[number, number]——
defaultValue[number, number][25, 75]—
onValueChange(value: [number, number]) => void——
minnumber0—
maxnumber100—
stepnumber1—
minGapnumber0Smallest allowed distance between the two thumbs
disabledbooleanfalse—

Install

$ npx shadcn@latest add https://chromotion.dev/r/range-slider.json

More like this