Dual Range Slider
Overview
A slider with two draggable thumbs for selecting a range of values.
This form component is intended for interfaces that need a slider with two draggable thumbs for selecting a range of values, authentication flows, and settings forms. Its implementation is provided as editable source so the final behavior and styling stay inside your project.
Technologies
Detected package dependencies: @radix-ui/react-slider.
Installation
Usage
Custom Label
Label Position
Single Slider
Props
| Prop | Type | Required | Description |
|---|---|---|---|
labelPosition | "top" | "bottom" | No | Value accepted by the labelPosition property in the exported source type. |
label | (value: number | undefined) => React.ReactNode | No | Value accepted by the label property in the exported source type. |
Use cases
- interfaces that need a slider with two draggable thumbs for selecting a range of values
- authentication flows
- settings forms
Features
- Copy-paste source that remains in your repository
- TypeScript source included with the component
- Tailwind CSS classes editable in the component source
- shadcn/ui dependencies: local UI primitives
- Spectrum UI registry dependencies: @spectrumui/dual-range-slider-dependecies
Accessibility
- The source uses Radix UI primitives for the interactions detected on this component.
- Test focus order, keyboard operation, labels, contrast, and screen-reader output in the final application context.
Customization
- Edit the Tailwind utility classes in the copied source to match your spacing, color, and typography tokens.
- Use the documented className surface for local layout adjustments, then edit the source for structural changes.
Related components
Topic guides
See how this component fits into broader interface patterns, implementation decisions, and working examples.
Dual Range Slider FAQ
Is Dual Range Slider free to use in commercial projects?
Yes. The public Dual Range Slider source is available under the Apache License 2.0, including for commercial use, subject to the LICENSE terms.
How do I install Dual Range Slider?
Run npx shadcn@latest add @spectrumui/dual-range-slider-demo or npx shadcn@latest add @spectrumui/dual-range-slider-custom-label or npx shadcn@latest add @spectrumui/dual-range-slider-label-position or npx shadcn@latest add @spectrumui/dual-range-slider-single. The page also exposes the source for manual installation.
Does Dual Range Slider require Motion?
No Motion dependency was detected in the documented source or registry entry for Dual Range Slider.
Does Dual Range Slider use shadcn/ui or Radix UI?
Dual Range Slider uses local shadcn/ui primitives and imports Radix UI directly.
Can I use Dual Range Slider in Next.js?
The documented React source is used in this Next.js application. Keep its use client directive when copying it into the App Router. Install the detected dependencies and verify any application-specific data or image configuration.
What accessibility checks should I run for Dual Range Slider?
The source includes Radix UI primitives. Test the finished interface with keyboard and screen-reader workflows.