MindeesUI
ComponentsForms

RangeSlider

A two-thumb slider for selecting a low/high range, with snapping and a normalised value pair.

RangeSlider draws two thumbs over a shared track to select a [low, high] pair. The nearer thumb captures each gesture, and the value is always normalised so low <= high. It fires onChange while dragging and onChangeEnd when the gesture ends.

Import

import { RangeSlider } from '@mindees/ui';

Usage

<RangeSlider value={price} onChange={setPrice} min={0} max={500} step={10} />

Props

PropTypeDefaultDescription
valuereadonly [number, number][0, 1]Current [low, high] pair, normalised so low ≤ high.
onChange(value: [number, number]) => voidFired continuously as a thumb is dragged.
onChangeEnd(value: [number, number]) => voidFired once when the drag gesture ends.
minnumber0Lower bound.
maxnumber1Upper bound.
stepnumber0Step granularity; 0 means continuous.
disabledbooleanfalseIgnore gestures and dim the track and thumbs.
accessibilityLabelstringAccessible name for the range slider.
styleStyleProp<ViewStyle>Style applied to the root container.

Accessibility

The root uses accessibilityRole="adjustable", exposes the range via accessibilityValue (with a "{low} to {high}" text summary), and reflects the disabled state. Supply accessibilityLabel to name the control.

On this page