Skip to Content
✨ Just dropped my UI Library — still cooking up some magic! Stay tuned & maybe… hire me  or sponsor me 😉 
DocumentationRange Slider

Range Slider

A dual-thumb range slider component that allows users to select a range of values between a minimum and maximum. Perfect for price ranges, date ranges, and filtering.

Install Dependencies

npx
quickcode-ui add RangeSlider

Default Usage

Default Range Slider

Props

PropTypeDefaultDescription
classNamestring-Additional CSS classes to apply to the slider
value[number, number]-Current range values [min, max]
defaultValue[number, number][25, 75]Default range values
onChange(value: [number, number]) => void-Callback fired when the range changes
minnumber0Minimum value
maxnumber100Maximum value
stepnumber1Step interval
disabledbooleanfalseWhether the slider is disabled

Features

  • Dual Thumbs: Independent control of minimum and maximum values
  • Smart Constraints: Prevents thumbs from crossing over each other
  • Smooth Interaction: Responsive drag behavior with hover effects
  • Click to Set: Click anywhere on the track to move the nearest thumb
  • Accessible: Full keyboard navigation and screen reader support
  • Dark Mode Ready: Adapts to light and dark themes using design tokens
Last updated on