What problem does it solve?
Building accessible, performant, and flexible single-value and multi-thumb range sliders is complex because it requires coordinated state management, precise positioning, keyboard and touch interactions, and correct ARIA semantics across frameworks. TanStack Ranger centralizes this logic so developers can focus on markup and styling while the library handles value sorting, handle interactions, steps, ticks, and interpolation.
Core Features & Use Cases
- Headless API: Provides a framework-agnostic core and framework adapters for React, Vue, Solid, Svelte, and Angular so you control rendering and styling.
- Multi-thumb and single value support: Handles sorted values, overlapping thumbs, programmatic setValues, and segments between handles.
- Advanced controls: Supports stepSize, custom steps, tick marks, interpolators (including logarithmic), onDrag events, and getSteps/getTicks helpers.
- Accessibility: Built-in ARIA roles and attributes, keyboard navigation, and focus management for screen readers and keyboard users.
- Use Cases: Range filters in search interfaces, audio/video scrubbers, multi-range pricing sliders, and complex form inputs.
Quick Start
Create a React range slider using tanstack-ranger with two handles at 25 and 75 that updates local state on change and exposes step and tick helpers.