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

React
TypeScript
Tailwind CSS
shadcn/ui
Radix UI

Detected package dependencies: @radix-ui/react-slider.

@spectrumui/dual-range-slider-demo

Installation

Login to view commandCreate a free account to access the install command

Usage

Custom Label

@spectrumui/dual-range-slider-custom-label

Label Position

@spectrumui/dual-range-slider-label-position
TOP:
BOTTOM:

Single Slider

@spectrumui/dual-range-slider-single
With Label:
Without Label

Props

PropTypeRequiredDescription
labelPosition"top" | "bottom"NoValue accepted by the labelPosition property in the exported source type.
label(value: number | undefined) => React.ReactNodeNoValue 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.

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.