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

Slider

A smooth and interactive range slider component with gradient styling and responsive thumb design. Click anywhere on the track to instantly set the value.

Install Dependencies

npx
quickcode-ui add Slider

Default Usage

Default Slider

Props

PropTypeDefaultDescription
classNamestring-Additional CSS classes to apply to the slider
valuenumber-Current value of the slider
onChange(e: React.ChangeEvent<HTMLInputElement>) => void-Callback fired when the value changes
minnumber0Minimum value
maxnumber100Maximum value
stepnumber1Step interval
...propsReact.InputHTMLAttributes<HTMLInputElement>-All standard HTML input range attributes

Features

  • Click to Set: Click anywhere on the track to instantly set the value
  • Smooth Interaction: Responsive hover effects and smooth transitions
  • Gradient Design: Beautiful gradient track and thumb styling
  • Native HTML: Built on standard HTML range input for maximum compatibility
  • Accessible: Full keyboard navigation and screen reader support
  • Dark Mode Ready: Adapts to light and dark themes using design tokens
Last updated on