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
@marktiderman/genesis-uiimport { RangeSlider } from "@marktiderman/genesis-ui";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.
| Prop | Type | Default | Description |
|---|---|---|---|
| onChange* | (value: [number, number]) => void | — | |
| value* | [number, number] | — | The low and high ends. |
| className | string | — | |
| disabled | boolean | — | |
| labels | readonly [string, string] | ["Minimum", "Maximum"] | The thumbs' accessible names. Default "Minimum" and "Maximum". |
| max | number | 100 | |
| min | number | 0 | |
| minStepsBetweenThumbs | number | 0 | Steps 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. |
| step | number | 1 | |
| testID | string | — |