File: basic.md | Updated: 11/15/2025
Search...
+ K
Auto
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide
Documentation
Framework
React
Version
Latest
Search...
+ K
Menu
Getting Started
Adapters
API Reference
Examples
Framework
React
Version
Latest
Menu
Getting Started
Adapters
API Reference
Examples
On this page
Want to skip to the implementation? Check out these examples:
The API below described how to use the basic features.
tsx
values: ReadonlyArray<number>
values: ReadonlyArray<number>
Required The current value (or values) for the range.
tsx
min: number
min: number
Required The minimum limit for the range.
tsx
max: number
max: number
Required The maximum limit for the range.
ts
stepSize: number
stepSize: number
Required The distance between selectable steps.
ts
onChange: (instance: Ranger<TTrackElement>) => void
onChange: (instance: Ranger<TTrackElement>) => void
A function that is called when the handle is released.
tsx
handles: ReadonlyArray<{value: number; isActive: boolean; onKeyDownHandler(event): function; onMouseDownHandler(event): function; onTouchStart(event): function}>
handles: ReadonlyArray<{value: number; isActive: boolean; onKeyDownHandler(event): function; onMouseDownHandler(event): function; onTouchStart(event): function}>
Handles to be rendered. Each handle has the following props:
tsx
activeHandleIndex: null | number
activeHandleIndex: null | number
The zero-based index of the handle that is currently being dragged, or null if no handle is being dragged.
