What problem does it solve?
TanStack Ranger extracts and centralizes the complex logic required to implement accessible single-value, range, and multi-thumb sliders so developers can avoid reinventing handle coordination, keyboard interaction, and value interpolation while focusing on styling and markup.
Core Features & Use Cases
- Headless slider logic: manages values, sorting, handle interaction, and programmatic updates for single, range, and multi-thumb sliders.
- Accessibility-first: supplies role, aria-valuemin, aria-valuemax, aria-valuenow, keyboard navigation, and focus management out of the box.
- Flexible configuration: supports stepSize, custom steps, ticks, interpolators (including logarithmic), and onDrag/onChange hooks for real-time feedback.
- Use Case: Implement price range filters, audio/video scrubbers, or timeline selection UI components that require multiple thumbs, precise steps, and full keyboard accessibility.
Quick Start
Create a React range slider using useRanger with two thumbs set to 25 and 75, keyboard navigation enabled, and an active track segment between the handles.