Slider
<slider>
is a UI component that provides a slider control for picking values within a specified numeric range.
See also:
import * as React from "react";
<slider value={0} onValueChange={onValueChange} />
Props
Name | Type | Description |
---|---|---|
value | number | Sets the currently selected value of the slider. Default value: 0 . |
minValue | number | Sets the minimum value of the slider. Default value: 0 . |
maxValue | number | Sets the maximum value of the slider. Default value: 100 . |
onValueChange | (args: EventData ) => void | Emitted when the value of the slider changes. |
Native component
Android | iOS |
---|---|
android.widget.SeekBar | UISlider |