Genesis
@beta

RangeSlider

RangeSlider — two thumbs on one track, for a range (a price band, an age range): the twin of genesis-ui-native's NativeRangeSlider, with the same `value: [low, high]` and `onChange`. It is the Slider with two values (Radix draws a thumb per value, each keyboard-adjustable with the arrow keys, Page Up/Down and Home/End). The ends are snapped and kept in order by genesis-core's `clampRange`, the rule the phone's twin applies.

packages/ui/src/components/ui/range-slider.tsx

Import
Subpath export: @marktiderman/genesis-ui
import { RangeSlider } from "@marktiderman/genesis-ui";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

RangeSlider

RangeSlider — two thumbs on one track, for a range (a price band, an age range): the twin of genesis-ui-native's NativeRangeSlider, with the same `value: [low, high]` and `onChange`. It is the Slider with two values (Radix draws a thumb per value, each keyboard-adjustable with the arrow keys, Page Up/Down and Home/End). The ends are snapped and kept in order by genesis-core's `clampRange`, the rule the phone's twin applies.

PropTypeDefaultDescription
onChange*(value: [number, number]) => void—
value*[number, number]—The low and high ends.
classNamestring—
disabledboolean—
labelsreadonly [string, string]["Minimum", "Maximum"]The thumbs' accessible names. Default "Minimum" and "Maximum".
maxnumber100
minnumber0
minStepsBetweenThumbsnumber0Steps the two thumbs keep between them. Default 0 (they may meet).
onCommit((value: [number, number]) => void)—Called once a drag ends, with the final range.
stepnumber1
testIDstring—
Storybook
Storybook hosts the canonical visual reference with controls for every variant.